Skip to content

Commit 35b75e0

Browse files
committed
add CI testcases for http1.1 masque connect-udp
1 parent ab7e567 commit 35b75e0

4 files changed

Lines changed: 32 additions & 10 deletions

File tree

scripts/coverage/vey-proxy/0006_chain_http_proxy/main.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ server:
8080
private-key: ../vey-proxy.local-key.pem
8181
tls_client:
8282
ca_certificate: ../rootCA.pem
83-
- name: socks
83+
- name: socks1
8484
type: socks_proxy
8585
listen: 127.0.0.1:1080
8686
escaper: chained_http
87+
- name: socks2
88+
type: socks_proxy
89+
listen: 127.0.0.1:1081
90+
escaper: chained_https
8791
- name: http
8892
type: http_proxy
8993
listen: 127.0.0.1:8080

scripts/coverage/vey-proxy/0006_chain_http_proxy/testcases.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,15 @@ test_https_proxy_https_connect
115115
test_https_proxy_https_forward
116116

117117

118-
SOCKS5_PROXY="socks5h://127.0.0.1:1080"
119-
test_socks5_proxy_http
120-
test_socks5_proxy_https
121-
122-
123-
SOCKS4_PROXY="socks4a://127.0.0.1:1080"
124-
test_socks4_proxy_http
125-
test_socks4_proxy_https
118+
for port in 1080 1081
119+
do
120+
SOCKS5_PROXY="socks5h://127.0.0.1:${port}"
121+
test_socks5_proxy_http
122+
test_socks5_proxy_https
123+
test_socks5_proxy_dns
124+
125+
126+
SOCKS4_PROXY="socks4a://127.0.0.1:${port}"
127+
test_socks4_proxy_http
128+
test_socks4_proxy_https
129+
done

scripts/coverage/vey-proxy/0011_escaper_proxy_float/testcases.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ for port in 1080 1081
1212
do
1313
SOCKS5_PROXY="socks5h://127.0.0.1:${port}"
1414
test_socks5_proxy_http
15+
test_socks5_proxy_dns
1516

1617

1718
SOCKS4_PROXY="socks4a://127.0.0.1:${port}"
@@ -30,6 +31,7 @@ for port in 1080 1081
3031
do
3132
SOCKS5_PROXY="socks5h://127.0.0.1:${port}"
3233
test_socks5_proxy_http
34+
test_socks5_proxy_dns
3335

3436

3537
SOCKS4_PROXY="socks4a://127.0.0.1:${port}"

vey-proxy/examples/escaper_proxy_socks5/main.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,20 @@ server:
1414
listen:
1515
address: "[::]:10087"
1616
tcp_sock_speed_limit: 100M
17-
- name: server_socks
17+
- name: server_http_direct
18+
escaper: direct
19+
type: http_proxy
20+
listen:
21+
address: "127.0.0.1:8080"
22+
- name: server_socks1
1823
escaper: socks5
1924
type: socks_proxy
2025
listen:
2126
address: "[::]:10086"
27+
- name: server_socks2
28+
escaper: http
29+
type: socks_proxy
30+
listen: "[::]:10088"
2231

2332
resolver:
2433
- name: default
@@ -32,6 +41,9 @@ escaper:
3241
resolve_strategy: IPv4Only
3342
tcp_sock_speed_limit: 80M
3443
udp_sock_speed_limit: 10M
44+
- name: http
45+
type: proxy_http
46+
proxy_addr: "127.0.0.1:8080"
3547
- name: socks5
3648
type: proxy_socks5
3749
proxy_addr: 127.0.0.1:10087

0 commit comments

Comments
 (0)