Support '*' wildcard (#1355)

This commit is contained in:
Ferenc Hammerl
2023-03-06 11:02:29 +01:00
committed by GitHub
parent 1f4b3fac06
commit d47e0bac60
2 changed files with 8 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ export function checkBypass(reqUrl: URL): boolean {
.map(x => x.trim().toUpperCase())
.filter(x => x)) {
if (
upperNoProxyItem === '*' ||
upperReqHosts.some(
x =>
x === upperNoProxyItem ||