We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f20dc9 commit 5e7cd85Copy full SHA for 5e7cd85
packages/grpc-js/src/http_proxy.ts
@@ -162,15 +162,10 @@ function hostMatchesNoProxyList(serverHost: string): boolean {
162
const parsedCIDR = parseCIDR(host);
163
// host is a CIDR and serverHost is an IP address
164
if (isIPv4(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) {
165
- trace('Not using proxy for target in no_proxy list: ' + serverHost);
166
return true;
167
- }
168
- // host is a single IP or a domain name suffix
169
- else {
170
- if (serverHost.endsWith(host)) {
171
172
- return true;
173
+ } else if (serverHost.endsWith(host)) {
+ // host is a single IP or a domain name suffix
+ return true;
174
}
175
176
return false;
0 commit comments