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 committed Jan 13, 2022
1 parent 21ab449 commit c6691c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/grpc-js/src/http_proxy.ts
Original file line number Diff line number Diff line change
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 c6691c8

Please sign in to comment.