mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-06 06:42:56 +00:00
fix: show LAN for auditlog location for internal networks
This commit is contained in:
@@ -72,7 +72,7 @@ func (s *GeoLiteService) GetLocationByIP(ipAddress string) (country, city string
|
||||
}
|
||||
for _, ipNet := range privateLanIPNets {
|
||||
if ipNet.Contains(ip) {
|
||||
return "Internal Network", "LAN/Docker/k8s", nil
|
||||
return "Internal Network", "LAN", nil
|
||||
}
|
||||
}
|
||||
for _, ipNet := range localhostIPNets {
|
||||
|
||||
Reference in New Issue
Block a user