mirror of https://github.com/go-redis/redis.git
Merge e059f9fbf8
into e63669e170
This commit is contained in:
commit
bb40848149
|
@ -714,7 +714,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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue