🐛 fix ip address lookup

This commit is contained in:
Flam3rboy
2021-06-27 23:51:30 +02:00
parent 3f7e8296d0
commit e542df3377
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -75,6 +75,7 @@ export async function IPAnalysis(ip: string): Promise<LookupResponse> {
}
export function isProxy(data: LookupResponse) {
if (!data || !data.asn || !data.threat) return false;
if (data.asn.type !== "isp") return true;
if (Object.values(data.threat).some((x) => x)) return true;