in azkustodata/trusted_endpoints/trusted_endpoints.go [197:212]
func isLocalAddress(host string) bool {
if host == "localhost" || host == "127.0.0.1" || host == "::1" || host == "[::1]" {
return true
}
if strings.HasPrefix(host, "127.") && len(host) <= 15 && len(host) >= 9 {
for _, c := range host {
if c != '.' && (c < '0' || c > '9') {
return false
}
}
return true
}
return false
}