mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 19:22:29 +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 {
|
for _, ipNet := range privateLanIPNets {
|
||||||
if ipNet.Contains(ip) {
|
if ipNet.Contains(ip) {
|
||||||
return "Internal Network", "LAN/Docker/k8s", nil
|
return "Internal Network", "LAN", nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, ipNet := range localhostIPNets {
|
for _, ipNet := range localhostIPNets {
|
||||||
|
|||||||
Reference in New Issue
Block a user