mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Fixed auth check.
This commit is contained in:
parent
85382e25af
commit
aaf8b1935f
3 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue