Update endpoint/endpoint.go

Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
This commit is contained in:
dongjiang 2024-04-07 09:44:08 +08:00 committed by GitHub
parent dc9e0a5816
commit b5ef2fc913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{