1
0
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:
Kyle Mendell
2025-05-28 10:52:20 -05:00
parent 97cbdfb1ef
commit b874681824

View File

@@ -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 {