Skip to content

Commit

Permalink
rpc: websocket should respect the "HTTP_PROXY" by default (ethereum#2…
Browse files Browse the repository at this point in the history
…7264)

rpc: the default dialer for websocket should respect the proxy environment variables like "HTTP_PROXY"
  • Loading branch information
oseau authored May 15, 2023
1 parent 9ca84e6 commit 7369752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er
ReadBufferSize: wsReadBuffer,
WriteBufferSize: wsWriteBuffer,
WriteBufferPool: wsBufferPool,
Proxy: http.ProxyFromEnvironment,
}
}

Expand Down

0 comments on commit 7369752

Please sign in to comment.