Skip to content
Failed

Changes

Summary

  1. Server: Add initial CIDR & Range ban support (commit: 0d90fca) (details)
  2. Server.c: Handle disconnecting banned players properly (commit: 8ae2824) (details)
Commit 0d90fca6f030eca36247688a274f18ee6d9ba648 by 16738302+Haxk20
Server: Add initial CIDR & Range ban support

Now we can ban CIDR ranges with /banip <ip/CIDR> <reason>
And range with /banrange <startRange> <endRange> <reason>

These are initial support and improvements will come soon
(commit: 0d90fca)
The file was modified Source/Commands.c (diff)
The file was modified Source/Protocol.h (diff)
The file was modified Source/Server.c (diff)
The file was modified Source/Protocol.c (diff)
Commit 8ae2824055dba8ca24d1b13a77bacbe5e8f6290d by 16738302+Haxk20
Server.c: Handle disconnecting banned players properly

If banned player tried to join we would get in a lot
of trouble as soon as they disconnect cause we would
try to send a lot of stuff that depends on PlayerID.
Which these players do not have.
Causing overflowing of variables and other mess. Handle
it properly.
(commit: 8ae2824)
The file was modified Source/Server.c (diff)
The file was modified Source/Packets.c (diff)