Unverified Commit 73697529 authored by oseau's avatar oseau Committed by GitHub

rpc: websocket should respect the "HTTP_PROXY" by default (#27264)

rpc: the default dialer for websocket should respect the proxy environment variables like "HTTP_PROXY"
parent 9ca84e6b
......@@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er
ReadBufferSize: wsReadBuffer,
WriteBufferSize: wsWriteBuffer,
WriteBufferPool: wsBufferPool,
Proxy: http.ProxyFromEnvironment,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment