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
|
||||
- name: Test socks5
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue