Skip to content

Commit c1d68a0

Browse files
authored
Merge pull request #2022 from mullvad/disable-http-proxy-for-uds
grpc-js: Don't use http_proxy for uds connections
2 parents 21ab449 + c6691c8 commit c1d68a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/grpc-js/src/http_proxy.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ export function mapProxyName(
136136
if ((options['grpc.enable_http_proxy'] ?? 1) === 0) {
137137
return noProxyResult;
138138
}
139+
if (target.scheme === 'unix') {
140+
return noProxyResult;
141+
}
139142
const proxyInfo = getProxyInfo();
140143
if (!proxyInfo.address) {
141144
return noProxyResult;

0 commit comments

Comments
 (0)