Noooste / azuretls-client

An easy-to-use HTTP client 100% in Go to spoof TLS/JA3 and HTTP2 fingerprint
MIT License
177 stars 25 forks source link

CONNECT requests fail under proxy connections. #115

Closed VegieIsCute closed 3 months ago

VegieIsCute commented 3 months ago

Describe the bug When a proxy is applied, and a connect request is made, the request fails with the error "proxy connection timeout" immediately.

To Reproduce

session := azuretls.NewSession()
defer session.Close()
_ = session.SetProxy("YOUR PROXY")
err := session.Connect("http://tls.peet.ws:443")
if err != nil {
    fmt.Println(err)
}

Expected behavior CONNECT requests to succeed even under proxies.

Screenshots image

Desktop (please complete the following information):

Noooste commented 3 months ago

Thanks for reporting me this, will be patched asap!