Skip to content

Commit 7369752

Browse files
authored
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"
1 parent 9ca84e6 commit 7369752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rpc/websocket.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er
224224
ReadBufferSize: wsReadBuffer,
225225
WriteBufferSize: wsWriteBuffer,
226226
WriteBufferPool: wsBufferPool,
227+
Proxy: http.ProxyFromEnvironment,
227228
}
228229
}
229230

0 commit comments

Comments
 (0)