test filter

This commit is contained in:
shoopea 2020-06-21 14:57:15 +02:00
parent 0e88fff5a3
commit 0adbc9d4ec

View File

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