Skip to content

Commit c6691c8

Browse files
committed
grpc-js: Don't use http_proxy for uds connections
1 parent 21ab449 commit c6691c8

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)