mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+1
-1
@@ -222,7 +222,7 @@ module.exports = class Util {
|
|||||||
}
|
}
|
||||||
const parsedRedirect = new URL(redirectURL);
|
const parsedRedirect = new URL(redirectURL);
|
||||||
const { type: reType, domain: reDomain, topLevelDomains: reTop } = parseDomain(parsedRedirect.hostname);
|
const { type: reType, domain: reDomain, topLevelDomains: reTop } = parseDomain(parsedRedirect.hostname);
|
||||||
if (reType !== ParseResultType.Listsed) return null;
|
if (reType !== ParseResultType.Listed) return null;
|
||||||
if (siteList.includes(`${reDomain}.${reTop.join('.')}`)) return true;
|
if (siteList.includes(`${reDomain}.${reTop.join('.')}`)) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user