-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: ✨ Pipeline and Bug Fixes [1.0.27] (#351)
- Loading branch information
1 parent
3b2eba0
commit 7599744
Showing
20 changed files
with
4,460 additions
and
2,688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ Table of contents | |
## Dependencies | ||
|
||
``` | ||
node ^v16.0 | ||
node ^v18.0 | ||
golang ^v1.21x | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,43 +17,40 @@ func TestProxySuccess(t *testing.T) { | |
return | ||
} | ||
client := cycletls.Init() | ||
resp, err := client.Do("https://ipinfo.io/json", cycletls.Options{ | ||
resp, err := client.Do("https://httpbin.org/ip", cycletls.Options{ | ||
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: "socks5://abc:[email protected]:1087", | ||
Headers: map[string]string{ | ||
"Accept": "Application/json, text/plain, */*", | ||
}, | ||
Ja3: "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0", | ||
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", | ||
Proxy: "socks5://127.0.0.1:9050", | ||
}, "GET") | ||
if err != nil { | ||
t.Fatalf("Request Failed: " + err.Error()) | ||
} | ||
if resp.Status != 200 { | ||
t.Fatalf("Expected %d Got %d for Status", 200, resp.Status) | ||
} | ||
log.Print("Body: " + resp.Body) | ||
} | ||
func TestSocks4Proxy(t *testing.T) { | ||
if runtime.GOOS != "linux" { | ||
t.Skip("Skipping this test on non-linux platforms") | ||
return | ||
} | ||
client := cycletls.Init() | ||
resp, err := client.Do("https://ipinfo.io/json", cycletls.Options{ | ||
resp, err := client.Do("https://httpbin.org/ip", cycletls.Options{ | ||
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:[email protected]:9050", | ||
Headers: map[string]string{ | ||
"Accept": "Application/json, text/plain, */*", | ||
}, | ||
Ja3: "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0", | ||
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", | ||
Proxy: "socks4://127.0.0.1:9050", | ||
}, "GET") | ||
if err != nil { | ||
t.Fatalf("Request Failed: " + err.Error()) | ||
} | ||
if resp.Status != 200 { | ||
t.Fatalf("Expected %d Got %d for Status", 200, resp.Status) | ||
} | ||
log.Print("Body: " + resp.Body) | ||
|
||
} | ||
|
||
func TestSocks5hProxy(t *testing.T) { | ||
|
@@ -64,12 +61,9 @@ func TestSocks5hProxy(t *testing.T) { | |
client := cycletls.Init() | ||
resp, err := client.Do("https://httpbin.org/ip", cycletls.Options{ | ||
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", | ||
Ja3: "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0", | ||
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", | ||
Proxy: "socks5h://127.0.0.1:9050", | ||
Headers: map[string]string{ | ||
"Accept": "Application/json, text/plain, */*", | ||
}, | ||
}, "GET") | ||
if err != nil { | ||
t.Fatalf("Request Failed: " + err.Error()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.