Apply go fix modernizations
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user