From 73697529994e14996b7740730481e926d5ec3e40 Mon Sep 17 00:00:00 2001 From: oseau Date: Mon, 15 May 2023 13:48:06 +0800 Subject: [PATCH] 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" --- rpc/websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/websocket.go b/rpc/websocket.go index a6b95dd2a..889562d1a 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er ReadBufferSize: wsReadBuffer, WriteBufferSize: wsWriteBuffer, WriteBufferPool: wsBufferPool, + Proxy: http.ProxyFromEnvironment, } }