- Introduce new NET_CompareBaseAdrMask for easy comparison of ip address ranges

- Overhaul of the new banning functions:
  * basic check for redundant bans/exceptions
  * introduction of sv_banFile to make it possible to configure the file where to read bans and exceptions from
  * bans can now be deleted by giving address ranges, too.
This commit is contained in:
Thilo Schulz 2009-05-24 16:58:08 +00:00
parent 1f779efbb8
commit 50ca55702f
8 changed files with 303 additions and 151 deletions

6
README
View file

@ -181,6 +181,8 @@ New cvars
for more information
r_sdlDriver - read only, indicates the SDL driver
backend being used
sv_banFile - Name of the file that is used for storing
the server bans.
New commands
video [filename] - start video capture (use with demo command)
@ -192,8 +194,8 @@ New commands
server, valid <range> is either playernum or CIDR
notation address range.
exceptaddr <range> - exempt an ip address range from a ban.
bandel <num> - delete ban <num>
exceptdel <num> - delete exception <num>
bandel <range> - delete ban (either range or ban number)
exceptdel <range> - delete exception (either range or exception number)
listbans - list all currently active bans and exceptions
rehashbans - reload the banlist from serverbans.dat
flushbans - delete all bans