diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2020-05-05 20:10:08 +0300 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2020-05-05 20:10:08 +0300 |
| commit | b089b35f35a14e85d89df69254cc61495d59d3dd (patch) | |
| tree | da07e5b015e02f7fa05cf0be181697670af787ed /test | |
| parent | f44d6e1a111154b70aaeac9ffe38beaee2cc5dd7 (diff) | |
add http connect proxy server
Diffstat (limited to 'test')
| -rwxr-xr-x | test/auth.sh | 1 | ||||
| -rwxr-xr-x | test/proxy.sh | 15 |
2 files changed, 16 insertions, 0 deletions
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 |
