mirror of
https://github.com/bytedance/g3.git
synced 2026-05-18 23:42:21 +00:00
44 lines
890 B
Bash
44 lines
890 B
Bash
#!/bin/sh
|
|
|
|
|
|
test_socks5_proxy_http()
|
|
{
|
|
date
|
|
|
|
python3 "${PROJECT_DIR}/g3proxy/ci/python3+curl/test_httpbin.py" -x ${SOCKS5_PROXY} -T http://httpbin.local
|
|
python3 "${PROJECT_DIR}/g3proxy/ci/python3+requests/test_httpbin.py" -x ${SOCKS5_PROXY} -T http://httpbin.local
|
|
}
|
|
|
|
|
|
test_socks5_proxy_dns()
|
|
{
|
|
date
|
|
|
|
python3 "${PROJECT_DIR}/scripts/test/socks5_dns_query.py" -x ${SOCKS5_PROXY} --dns-server 127.0.0.1 g3proxy.local httpbin.local -v
|
|
}
|
|
|
|
|
|
test_socks4_proxy_http()
|
|
{
|
|
date
|
|
|
|
python3 "${PROJECT_DIR}/g3proxy/ci/python3+curl/test_httpbin.py" -x ${SOCKS4_PROXY} -T http://httpbin.local
|
|
}
|
|
|
|
|
|
SOCKS5_PROXY="socks5h://127.0.0.1:1080"
|
|
test_socks5_proxy_http
|
|
test_socks5_proxy_dns
|
|
|
|
|
|
SOCKS4_PROXY="socks4a://127.0.0.1:1080"
|
|
test_socks4_proxy_http
|
|
|
|
|
|
SOCKS5_PROXY="socks5h://127.0.0.1:1081"
|
|
test_socks5_proxy_http
|
|
test_socks5_proxy_dns
|
|
|
|
|
|
SOCKS4_PROXY="socks4a://127.0.0.1:1081"
|
|
test_socks4_proxy_http
|