Skip to content

Commit

Permalink
fix proxy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Dasilva committed Aug 10, 2024
1 parent 9f318e1 commit 66e58a2
Show file tree
Hide file tree
Showing 5 changed files with 411 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Start SOCKS4 Proxy (only on ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: |
docker run -d -p 9050:9050 clue/psocksd
docker run -d -p 9050:9050 dperson/torproxy
- name: Integration Tests
working-directory: ./cycletls
Expand Down
2 changes: 1 addition & 1 deletion cycletls/tests/integration/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestSocks4Proxy(t *testing.T) {
Body: "",
Ja3: "771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0",
UserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0",
Proxy: "socks4://abc:123@127.0.0.1:9050",
Proxy: "socks4://127.0.0.1:9050",
Headers: map[string]string{
"Accept": "Application/json, text/plain, */*",
},
Expand Down
20 changes: 20 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module github.com/Danny-Dasilva/CycleTLS

go 1.22.6

require (
github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.26 // indirect
github.com/Danny-Dasilva/fhttp v0.0.0-20240217042913-eeeb0b347ce1 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/klauspost/compress v1.17.6 // indirect
github.com/quic-go/quic-go v0.41.0 // indirect
github.com/refraction-networking/utls v1.6.2 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
h12.io/socks v1.0.3 // indirect
)
replace github.com/Danny-Dasilva/CycleTLS/cycletls => ./cycletls
Loading

0 comments on commit 66e58a2

Please sign in to comment.