mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 11:02:29 +00:00
🐛 fix ip address lookup
This commit is contained in:
1 parent
3f7e8296d0
commit
e542df3377
3 files changed
+2
-1
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user