From 8deec6a7dbd446996d6dfcf6ecb69dac47880ae3 Mon Sep 17 00:00:00 2001 From: Daneyon Hansen Date: Wed, 15 Nov 2017 13:14:03 -0800 Subject: [PATCH] Fixes Issue 55816: Removes unneeded IPPart error --- pkg/proxy/util/endpoints.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/proxy/util/endpoints.go b/pkg/proxy/util/endpoints.go index 0e8bdffc310..f48226a3155 100644 --- a/pkg/proxy/util/endpoints.go +++ b/pkg/proxy/util/endpoints.go @@ -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 "" }