Test SOCKS proxy authentication

This commit is contained in:
klzgrad 2021-04-19 22:41:24 +08:00
parent 1ece4ffa42
commit ccb747106e

View File

@ -62,6 +62,18 @@ test_naive 'Trivial - listen no host' socks5h://127.0.0.1:60301 \
test_naive 'Trivial - listen no port' socks5h://127.0.0.1:1080 \
'--log --listen=socks://127.0.0.1'
test_naive 'Trivial - auth' socks5h://user:pass@127.0.0.1:1080 \
'--log --listen=socks://user:pass@127.0.0.1'
test_naive 'Trivial - auth with special chars' socks5h://user:^@127.0.0.1:1080 \
'--log --listen=socks://user:^@127.0.0.1'
test_naive 'Trivial - auth with special chars' socks5h://^:^@127.0.0.1:1080 \
'--log --listen=socks://^:^@127.0.0.1'
test_naive 'Trivial - auth with empty pass' socks5h://user:@127.0.0.1:1080 \
'--log --listen=socks://user:@127.0.0.1'
test_naive 'SOCKS-SOCKS' socks5h://127.0.0.1:60401 \
'--log --listen=socks://:60401 --proxy=socks://127.0.0.1:60402' \
'--log --listen=socks://:60402'