From e8cd1c1764dc4fdae71d1afbe0b0cc13bf3ce97e Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 21 Jun 2020 15:12:34 +0200 Subject: [PATCH] test --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9365c84..5b62fba 100644 --- a/main.go +++ b/main.go @@ -155,7 +155,7 @@ func main() { sp.Read(b[:p.PLength]) ok, err := regexp.MatchString("\\[udp\\] queried from (.*)", sp.Text) logErrorDebug(err, "match string") - if sp.Origin != "net" || ok == false { + if sp.Origin != "net\x00" || ok == false { logInfoDebug("AdminPacketServerConsole :\n- Origin: %q\n- Text: %s\n- Regexp: %v\n- Text: %v", sp.Origin, sp.Text, ok, (sp.Origin != "net")) } case AdminPacketServerRConEnd: