From b089b35f35a14e85d89df69254cc61495d59d3dd Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Tue, 5 May 2020 20:10:08 +0300 Subject: add http connect proxy server --- test/auth.sh | 1 + test/proxy.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 test/proxy.sh (limited to 'test') diff --git a/test/auth.sh b/test/auth.sh index 58b1180..66855e2 100755 --- a/test/auth.sh +++ b/test/auth.sh @@ -9,6 +9,7 @@ tunnel set tunnel.T.secret secret tunnel set tunnel.X.secret secret nc -l 4000 & echo "Hello, World!" | nc -N localhost 2000 +wait tunnel clear tunnel del T tunnel del X diff --git a/test/proxy.sh b/test/proxy.sh new file mode 100755 index 0000000..ec513fe --- /dev/null +++ b/test/proxy.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +ROOT=$(dirname $0)/.. +PATH=$ROOT/cmd/tunnel:$PATH + +tunnel add name C 2000,listen proxy,addr=localhost:4000 3000 +tunnel add name S 3000,listen proxy +tunnel set tunnel.C.proxy.auth user:password +tunnel set tunnel.S.proxy.auth user:password +nc -l 4000 & +echo "Hello, World!" | nc -N localhost 2000 +wait +tunnel clear +tunnel del C +tunnel del S -- cgit v1.2.3-70-g09d2