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);
// 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;