mirror of
https://github.com/bytedance/g3.git
synced 2026-05-19 16:28:21 +00:00
47 lines
1,018 B
Bash
47 lines
1,018 B
Bash
#!/bin/sh
|
|
|
|
|
|
for user in "t1:toor" "t2:toor"
|
|
do
|
|
|
|
HTTP_PROXY="http://${user}@127.0.0.1:8080"
|
|
test_http_proxy_http_forward
|
|
test_http_proxy_ftp_over_http
|
|
test_http_proxy_https_connect
|
|
test_http_proxy_https_forward
|
|
|
|
HTTPS_PROXY="https://${user}@g3proxy.local:8443"
|
|
test_https_proxy_http_forward
|
|
test_https_proxy_ftp_over_http
|
|
test_https_proxy_https_connect
|
|
test_https_proxy_https_forward
|
|
|
|
SOCKS5_PROXY="socks5h://${user}@127.0.0.1:1080"
|
|
test_socks5_proxy_http
|
|
test_socks5_proxy_https
|
|
test_socks5_proxy_dns
|
|
done
|
|
|
|
|
|
HTTP_PROXY="http://127.0.0.1:8080"
|
|
test_http_proxy_http_forward
|
|
test_http_proxy_ftp_over_http
|
|
test_http_proxy_https_connect
|
|
test_http_proxy_https_forward
|
|
|
|
|
|
HTTPS_PROXY="https://g3proxy.local:8443"
|
|
test_https_proxy_http_forward
|
|
test_https_proxy_ftp_over_http
|
|
test_https_proxy_https_connect
|
|
test_https_proxy_https_forward
|
|
|
|
|
|
SOCKS5_PROXY="socks5h://127.0.0.1:1080"
|
|
test_socks5_proxy_http
|
|
test_socks5_proxy_https
|
|
test_socks5_proxy_dns
|
|
|
|
|
|
SOCKS4_PROXY="socks4a://127.0.0.1:1080"
|
|
test_socks4_proxy_http
|