Browse Source

fix packet end condition

main 1.0.3
ghost 12 months ago
parent
commit
550efd120f
  1. 2
      src/Xash3D/Master.php

2
src/Xash3D/Master.php

@ -94,7 +94,7 @@ class Master @@ -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;
}

Loading…
Cancel
Save