Support '*' wildcard

This commit is contained in:
Ferenc Hammerl
2023-02-23 18:06:09 +01:00
parent 0db3029fcf
commit 7f30e5019a
2 changed files with 8 additions and 2 deletions
+1
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 ||