remove trace

This commit is contained in:
Malak El Kouri 2025-01-15 10:02:14 +01:00
parent 5f20dc91f0
commit 5e7cd85290
1 changed files with 3 additions and 8 deletions

View File

@ -162,15 +162,10 @@ function hostMatchesNoProxyList(serverHost: string): boolean {
const parsedCIDR = parseCIDR(host); const parsedCIDR = parseCIDR(host);
// host is a CIDR and serverHost is an IP address // host is a CIDR and serverHost is an IP address
if (isIPv4(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) { if (isIPv4(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) {
trace('Not using proxy for target in no_proxy list: ' + serverHost);
return true; return true;
} } else if (serverHost.endsWith(host)) {
// host is a single IP or a domain name suffix // host is a single IP or a domain name suffix
else { return true;
if (serverHost.endsWith(host)) {
trace('Not using proxy for target in no_proxy list: ' + serverHost);
return true;
}
} }
} }
return false; return false;