diff --git a/src/utils/utils.go b/src/utils/utils.go index e226b9b..ba1f7cd 100644 --- a/src/utils/utils.go +++ b/src/utils/utils.go @@ -278,6 +278,9 @@ var PrivateIPNetworks = []net.IPNet{ } func IsLocalIP(ipaddress string) bool { + if strings.Contains("localhost") { + return true + } host, _, _ := net.SplitHostPort(ipaddress) ip := net.ParseIP(host) for _, ipNet := range PrivateIPNetworks {