Commit 8deec6a7 authored by Daneyon Hansen's avatar Daneyon Hansen

Fixes Issue 55816: Removes unneeded IPPart error

parent 95b43128
......@@ -39,8 +39,9 @@ func IPPart(s string) string {
}
// Check if host string is a valid IP address
if ip := net.ParseIP(host); ip != nil {
return ip.String()
} else {
glog.Errorf("invalid IP part '%s'", host)
return host
}
return ""
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment