TUN-4069: Fix regression on support for websocket over proxy
This commit is contained in:
parent
452f8cef79
commit
4296b23087
|
@ -22,7 +22,8 @@
|
|||
|
||||
### Bug Fixes
|
||||
|
||||
- none
|
||||
- GitHub [PR #317](https://github.com/cloudflare/cloudflared/issues/317) was broken in 2021.2.5 and is now fixed again.
|
||||
|
||||
|
||||
## 2021.2.5
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@ func createWebsocketStream(options *StartOptions, log *zerolog.Logger) (*cfwebso
|
|||
|
||||
dialer := &websocket.Dialer{
|
||||
TLSClientConfig: options.TLSClientConfig,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
wsConn, resp, err := cfwebsocket.ClientConnect(req, dialer)
|
||||
defer closeRespBody(resp)
|
||||
|
|
Loading…
Reference in New Issue