fix(core): update

This commit is contained in:
2023-04-03 17:50:55 +02:00
parent 6e8beac2dd
commit ecb009dedb
3 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -21,5 +21,13 @@ export class SmartWhois {
};
}
public async isValidTld(tldArg: string): Promise<boolean> {
const allTlds = await plugins.whoiser.allTlds();
const sanatizedTld = tldArg.startsWith('.')
? tldArg.replace('.', '').toUpperCase()
: tldArg.toUpperCase();
return allTlds.includes(sanatizedTld);
}
public async getWhoisForIp(ipArg: string) {}
}
}