Merge branch 'master' into jajaja
# Conflicts: # package.json # pnpm-lock.yaml # src/lib/detect.ts
This commit is contained in:
@@ -130,7 +130,7 @@ export async function getLocation(ip: string = '', headers: Headers, hasPayloadI
|
||||
);
|
||||
}
|
||||
|
||||
const result = globalThis[MAXMIND].get(ip);
|
||||
const result = globalThis[MAXMIND].get(ip?.split(':')[0]);
|
||||
|
||||
if (result) {
|
||||
const country = result.country?.iso_code ?? result?.registered_country?.iso_code;
|
||||
|
||||
Reference in New Issue
Block a user