Skip to content

Commit

Permalink
grpc-js: Don't use http_proxy for uds connections
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo authored and murgatroid99 committed Jan 14, 2022
1 parent 37b9ec6 commit 500fc2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/grpc-js/src/http_proxy.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 500fc2c

Please sign in to comment.