add test case for http proxy

This commit is contained in:
octeep 2023-05-22 17:18:54 +01:00
parent f401ec3bbc
commit 913319320e
No known key found for this signature in database
GPG key ID: 2EFF053CB733B81C
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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