Apply go fix modernizations

This commit is contained in:
Ian Gulliver
2026-03-05 11:39:13 -08:00
parent 4278628690
commit d71b0cb850

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"math/rand"
"net"
"slices"
"sync"
"time"
@@ -207,10 +208,8 @@ func (c *Conn) isQuery(packet gopacket.Packet) bool {
}
c.mu.Lock()
defer c.mu.Unlock()
for _, groupIP := range c.groups {
if igmp.GroupAddress.Equal(groupIP) {
return true
}
if slices.ContainsFunc(c.groups, igmp.GroupAddress.Equal) {
return true
}
}
case *layers.IGMP: