From e6b7ae906b9fb56511e2338fb7d1e2569f2b23d5 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 28 Apr 2025 10:44:31 +0800 Subject: [PATCH] rpc: websocket should respect the HTTP_PROXY by default #27264 (#989) --- rpc/websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/websocket.go b/rpc/websocket.go index 65778b0e52..cdcfa0cd4f 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, } }