mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
remove trace
This commit is contained in:
parent
5f20dc91f0
commit
5e7cd85290
@ -162,15 +162,10 @@ function hostMatchesNoProxyList(serverHost: string): boolean {
|
||||
const parsedCIDR = parseCIDR(host);
|
||||
// host is a CIDR and serverHost is an IP address
|
||||
if (isIPv4(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) {
|
||||
trace('Not using proxy for target in no_proxy list: ' + serverHost);
|
||||
return true;
|
||||
}
|
||||
// host is a single IP or a domain name suffix
|
||||
else {
|
||||
if (serverHost.endsWith(host)) {
|
||||
trace('Not using proxy for target in no_proxy list: ' + serverHost);
|
||||
return true;
|
||||
}
|
||||
} else if (serverHost.endsWith(host)) {
|
||||
// host is a single IP or a domain name suffix
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user