Added support for proxy
This commit is contained in:
parent
1670ee87fb
commit
188efc2687
|
@ -76,7 +76,10 @@ type defaultDialler struct {
|
|||
}
|
||||
|
||||
func (dd *defaultDialler) Dial(url *url.URL, header http.Header) (*websocket.Conn, *http.Response, error) {
|
||||
d := &websocket.Dialer{TLSClientConfig: dd.tlsConfig}
|
||||
d := &websocket.Dialer{
|
||||
TLSClientConfig: dd.tlsConfig,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
return d.Dial(url.String(), header)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue