You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up an HTTPS proxy but I'm getting this error while connecting: failed to connect: couldn't dial whatsapp web websocket: proxy: unknown scheme: https
By further looking at the code, I see the proxy_FromURL function from x_net_proxy.go package getting called:
// FromURL returns a Dialer given a URL specification and an underlying
// Dialer for it to make network requests.
func proxy_FromURL(u *url.URL, forward proxy_Dialer) (proxy_Dialer, error) {
var auth *proxy_Auth
if u.User != nil {
auth = new(proxy_Auth)
auth.User = u.User.Username()
if p, ok := u.User.Password(); ok {
auth.Password = p
}
}
switch u.Scheme {
case "socks5":
return proxy_SOCKS5("tcp", u.Host, auth, forward)
}
// If the scheme doesn't match any of the built-in schemes, see if it
// was registered by another package.
if proxy_proxySchemes != nil {
if f, ok := proxy_proxySchemes[u.Scheme]; ok {
return f(u, forward)
}
}
return nil, errors.New("proxy: unknown scheme: " + u.Scheme)
}
And this is the function that's returning the error.
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to set up an HTTPS proxy but I'm getting this error while connecting:
failed to connect: couldn't dial whatsapp web websocket: proxy: unknown scheme: https
This is my code:
By further looking at the code, I see the
proxy_FromURL
function fromx_net_proxy.go
package getting called:And this is the function that's returning the error.
Thank you
The text was updated successfully, but these errors were encountered: