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:
Michael Lumish 2022-01-14 11:13:07 -08:00 committed by GitHub
commit c1d68a00ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;