mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #2022 from mullvad/disable-http-proxy-for-uds
grpc-js: Don't use http_proxy for uds connections
This commit is contained in:
commit
c1d68a00ac
@ -136,6 +136,9 @@ export function mapProxyName(
|
||||
if ((options['grpc.enable_http_proxy'] ?? 1) === 0) {
|
||||
return noProxyResult;
|
||||
}
|
||||
if (target.scheme === 'unix') {
|
||||
return noProxyResult;
|
||||
}
|
||||
const proxyInfo = getProxyInfo();
|
||||
if (!proxyInfo.address) {
|
||||
return noProxyResult;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user