Added support for proxy (#318)
Co-authored-by: Jeff Monson <jeff.monson@armis.com>
This commit is contained in:
parent
1670ee87fb
commit
5d76e940c7
|
@ -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