From c6691c855105e95ac176cfb799069e69613f1993 Mon Sep 17 00:00:00 2001 From: Oskar Nyberg Date: Thu, 13 Jan 2022 16:24:48 +0100 Subject: [PATCH] grpc-js: Don't use http_proxy for uds connections --- packages/grpc-js/src/http_proxy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/grpc-js/src/http_proxy.ts b/packages/grpc-js/src/http_proxy.ts index 248949a8..6faa1976 100644 --- a/packages/grpc-js/src/http_proxy.ts +++ b/packages/grpc-js/src/http_proxy.ts @@ -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;