We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to proxy my CONNECT requests through another HTTPS proxy. I tried doing this:
if externalProxy != "" { proxy.Tr = &http.Transport{Proxy: func(req *http.Request) (*url.URL, error) { return url.Parse(externalProxy) }} proxy.ConnectDial = proxy.NewConnectDialToProxy(externalProxy) }
When I proxy a CONNECT request through it, there is an error internally here:
goproxy/https.go
Line 399 in a92cc75
tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
I'm working around this by setting proxy.Tr.TLSClientConfig.ServerName when creating the proxy.
proxy.Tr.TLSClientConfig.ServerName
u, err := url.Parse(externalProxy) proxy.Tr = &http.Transport{ Proxy: func(req *http.Request) (*url.URL, error) { return u, nil }, TLSClientConfig: &tls.Config{ ServerName: u.Hostname(), }, }
I'd expect this server name to be set automatically when I call NewConnectDialToProxy, since the intent is to connect through another proxy.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to proxy my CONNECT requests through another HTTPS proxy. I tried doing this:
When I proxy a CONNECT request through it, there is an error internally here:
goproxy/https.go
Line 399 in a92cc75
tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
.I'm working around this by setting
proxy.Tr.TLSClientConfig.ServerName
when creating the proxy.I'd expect this server name to be set automatically when I call NewConnectDialToProxy, since the intent is to connect through another proxy.
The text was updated successfully, but these errors were encountered: