mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
+1
-1
@@ -222,7 +222,7 @@ module.exports = class Util {
|
||||
}
|
||||
const parsedRedirect = new URL(redirectURL);
|
||||
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;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user