白名单为空时全部放行

pull/85/head
hunshcn 2022-07-23 23:23:38 +08:00 committed by GitHub
parent f420bd2e95
commit 2dd775e152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ function httpHandler(req, pathname) {
const reqHdrNew = new Headers(reqHdrRaw)
let urlStr = pathname
let flag = false
let flag = Boolean(whiteList.length)
for (let i of whiteList) {
if (urlStr.includes(i)) {
flag = true