From 550efd120fc4734bf30b2b2ce378edf6eab82c29 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 13 Jan 2024 18:36:00 +0200 Subject: [PATCH] fix packet end condition --- src/Xash3D/Master.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xash3D/Master.php b/src/Xash3D/Master.php index 8f1dc61..70847cd 100644 --- a/src/Xash3D/Master.php +++ b/src/Xash3D/Master.php @@ -94,7 +94,7 @@ class Master } // Is end of packet - if (true === str_starts_with($host, (string) 0)) + if (true === str_ends_with(bin2hex($host), bin2hex("\0\0\0\0\0\0"))) { break; }