Skip to content

Commit e059f9f

Browse files
committed
Do not assume that all non-IP hosts are loopbacks
1 parent 00d9848 commit e059f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: osscluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ func replaceLoopbackHost(nodeAddr, originHost string) string {
691691
func isLoopback(host string) bool {
692692
ip := net.ParseIP(host)
693693
if ip == nil {
694-
return true
694+
return false
695695
}
696696
return ip.IsLoopback()
697697
}

0 commit comments

Comments
 (0)