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:
oseau 2023-05-15 13:48:06 +08:00 committed by GitHub
parent 9ca84e6b0b
commit 7369752999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ func newClientTransportWS(endpoint string, cfg *clientConfig) (reconnectFunc, er
ReadBufferSize: wsReadBuffer,
WriteBufferSize: wsWriteBuffer,
WriteBufferPool: wsBufferPool,
Proxy: http.ProxyFromEnvironment,
}
}