mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Speed up nsfw url check
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ module.exports = class Util {
|
||||
if (siteList.includes(`${domain}.${topLevelDomains.join('.')}`)) return true;
|
||||
let redirectURL;
|
||||
try {
|
||||
const { url: redirected } = await request.get(uri);
|
||||
const { url: redirected } = await request.get(uri, { noResultData: true });
|
||||
redirectURL = redirected;
|
||||
} catch {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user