mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
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"
This commit is contained in:
parent
43972327d0
commit
aff04e0ac3
1 changed files with 1 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er
|
||||||
ReadBufferSize: wsReadBuffer,
|
ReadBufferSize: wsReadBuffer,
|
||||||
WriteBufferSize: wsWriteBuffer,
|
WriteBufferSize: wsWriteBuffer,
|
||||||
WriteBufferPool: wsBufferPool,
|
WriteBufferPool: wsBufferPool,
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue