Do not assume that all non-IP hosts are loopbacks

This commit is contained in:
Jonathan Suever 2024-08-07 17:18:03 -04:00
parent 00d98485f8
commit e059f9fbf8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ func replaceLoopbackHost(nodeAddr, originHost string) string {
func isLoopback(host string) bool { func isLoopback(host string) bool {
ip := net.ParseIP(host) ip := net.ParseIP(host)
if ip == nil { if ip == nil {
return true return false
} }
return ip.IsLoopback() return ip.IsLoopback()
} }