mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-06-28 08:58:02 +02:00
add test case for http proxy
This commit is contained in:
parent
f401ec3bbc
commit
913319320e
2 changed files with 14 additions and 0 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -29,4 +29,10 @@ jobs:
|
||||||
run: ./wireproxy -c test.conf & sleep 1
|
run: ./wireproxy -c test.conf & sleep 1
|
||||||
- name: Test socks5
|
- name: Test socks5
|
||||||
run: curl --proxy socks5://localhost:64423 http://zx2c4.com/ip | grep -q "demo.wireguard.com"
|
run: curl --proxy socks5://localhost:64423 http://zx2c4.com/ip | grep -q "demo.wireguard.com"
|
||||||
|
- name: Test http
|
||||||
|
run: curl --proxy socks5://localhost:64424 http://zx2c4.com/ip | grep -q "demo.wireguard.com"
|
||||||
|
- name: Test http with password
|
||||||
|
run: curl --proxy http://peter:hunter123@localhost:64424 http://zx2c4.com/ip | grep -q "demo.wireguard.com"
|
||||||
|
- name: Test http with wrong password
|
||||||
|
run: ! curl --proxy http://peter:wrongpass@localhost:64424 http://zx2c4.com/ip
|
||||||
|
|
||||||
|
|
|
@ -17,4 +17,12 @@ Endpoint = demo.wireguard.com:$server_port
|
||||||
|
|
||||||
[Socks5]
|
[Socks5]
|
||||||
BindAddress = 127.0.0.1:64423
|
BindAddress = 127.0.0.1:64423
|
||||||
|
|
||||||
|
[http]
|
||||||
|
BindAddress = 127.0.0.1:64424
|
||||||
|
|
||||||
|
[http]
|
||||||
|
BindAddress = 127.0.0.1:64425
|
||||||
|
Username = peter
|
||||||
|
Password = hunter123
|
||||||
EOL
|
EOL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue