Fixed auth check.

This commit is contained in:
Mike Cao committed 2025-01-31 00:27:22 -08:00
1 parent 85382e25af
commit aaf8b1935f
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ function decodeHeader(s: string | undefined | null): string | undefined | null {
return Buffer.from(s, 'latin1').toString('utf-8');
}
export async function getLocation(ip: string, headers: Headers) {
export async function getLocation(ip: string = '', headers: Headers) {
// Ignore local ips
if (await isLocalhost(ip)) {
return;