match no_proxy to subdomains

This commit is contained in:
Felix Luthman
2022-10-25 21:44:44 +02:00
parent b36e70495f
commit da7e8df206

View File

@@ -51,7 +51,7 @@ export function checkBypass(reqUrl: URL): boolean {
.split(',')
.map(x => x.trim().toUpperCase())
.filter(x => x)) {
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
if (upperReqHosts.some(x => x.includes(upperNoProxyItem))) {
return true
}
}