From 5f51ceb3242c447532daf889391a9744ea44e054 Mon Sep 17 00:00:00 2001 From: BearLu Date: Wed, 27 Jan 2021 20:22:06 +0800 Subject: [PATCH] slove ips repeated question --- pkg/yurttunnel/server/serveraddr/addr.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/yurttunnel/server/serveraddr/addr.go b/pkg/yurttunnel/server/serveraddr/addr.go index 2b5a0d80282..e25ac65e339 100644 --- a/pkg/yurttunnel/server/serveraddr/addr.go +++ b/pkg/yurttunnel/server/serveraddr/addr.go @@ -234,7 +234,6 @@ func getClusterIPDNSandIP(svc *corev1.Service) ([]string, []net.IP, error) { constants.YurttunnelServerExternalAddrKey, host, constants.YurttunnelServerServiceName) dnsNames = append(dnsNames, host) } - ips = append(ips, ip) } return dnsNames, ips, nil