test filter
This commit is contained in:
parent
0e88fff5a3
commit
0adbc9d4ec
5
main.go
5
main.go
@ -152,7 +152,10 @@ func main() {
|
||||
Packet: p,
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
logInfoDebug("AdminPacketServerConsole :\n- Origin: %s\n- Text: %s", sp.Origin, sp.Text)
|
||||
ok, err := regexp.MatchString("\\[udp\\] queried from (.*)", sp.Text)
|
||||
if sp.Origin != "net" || !ok {
|
||||
logInfoDebug("AdminPacketServerConsole :\n- Origin: %s\n- Text: %s", sp.Origin, sp.Text)
|
||||
}
|
||||
case AdminPacketServerRConEnd:
|
||||
sp := PacketServerRConEnd{
|
||||
Packet: p,
|
||||
|
Loading…
Reference in New Issue
Block a user