From b5ef2fc9135d272ea648f5a43080634ce5084433 Mon Sep 17 00:00:00 2001 From: dongjiang Date: Sun, 7 Apr 2024 09:44:08 +0800 Subject: [PATCH] Update endpoint/endpoint.go Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com> --- endpoint/endpoint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index cee79910e..f7af843f6 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -102,6 +102,7 @@ func (t Targets) Same(o Targets) bool { for i, e := range t { if !strings.EqualFold(e, o[i]) { + // IPv6 can be shortened, so it should be parsed for equality checking ipA, err := netip.ParseAddr(e) if err != nil { log.WithFields(log.Fields{