mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 16:55:30 +00:00
🐛 fix ip address lookup
This commit is contained in:
@@ -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