mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: whois detect run against domain status as well [skip ci]
This commit is contained in:
@@ -282,6 +282,26 @@ export function noWhois(whois: whoiser.WhoisSearchResult): null | string {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (key === 'Domain Status') {
|
||||
if (Array.isArray(whois[key])) {
|
||||
for (const status of whois[key]) {
|
||||
if (whoisNotFoundKeywordTest(status.toLowerCase())) {
|
||||
return key + ': ' + status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (typeof whois[key] === 'string' && whois[key]) {
|
||||
if (whoisNotFoundKeywordTest(whois[key].toLowerCase())) {
|
||||
return key + ': ' + whois[key];
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (typeof whois[key] === 'object' && !Array.isArray(whois[key])) {
|
||||
const tmp = noWhois(whois[key]);
|
||||
if (tmp) {
|
||||
|
||||
Reference in New Issue
Block a user