update go.mod
This commit is contained in:
@@ -17,6 +17,10 @@ type NetCatch struct {
|
||||
stopFn context.CancelFunc
|
||||
}
|
||||
|
||||
func (n *NetCatch) Recall() func(gopacket.Packet) {
|
||||
return n.fn
|
||||
}
|
||||
|
||||
func (n *NetCatch) SetRecall(fn func(p gopacket.Packet)) {
|
||||
n.fn = fn
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user