Closed Rushaway closed 3 months ago
When banning someone from the servers list the filled IP address is missing the first octet.
(Actual details here are fake, but it basically shows what happens.)
This can also be found when you:
It should be a bug with a regular expression matching error.
You can try modifying this line in includes/system-functions.php
Modify to:
$regex = '/#\s*(\d+)(?>\s|\d)*"(.*)"\s*(STEAM_[01]:[01]:\d+|\[U:1:\d+\])(?>\s|:|\d)*[a-zA-Z]*\s*\d*\s([0-9.]+)/';
That fixed it, thanks!
What are the steps to reproduce this issue?
What happens?
The first octet of the IP is missing
What were you expecting to happen?
Have full IP.
Any logs, error output, etc.?
No errors on client & server side.
Any other comments?
N/A
What versions of software are you using?
Operating System: nginx SourceBans++ Version: 1.8.0 (php 8.1 branch) with the lastest release. PHP Version: 8.1.16 MySQL Version: 10.6.7-MariaDB-2ubuntu1 - Ubuntu 22.04 Link to your project: https://bans.nide.gg/index.php Link to a phpinfo() output: https://upgradebans.nide.gg/phpinfo.php