aboutsummaryrefslogtreecommitdiffstats
path: root/code/server/sv_main.c
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-05-24 16:58:08 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-05-24 16:58:08 +0000
commitddadef7a3cd39c13627e849b9bbf9cc7d52b866f (patch)
tree190bb1f8a5625a8870100729bd1f9bfc7d40b187 /code/server/sv_main.c
parent19234f2b7a3acccab061b6814868602e7c58d843 (diff)
downloadioquake3-aero-ddadef7a3cd39c13627e849b9bbf9cc7d52b866f.tar.gz
ioquake3-aero-ddadef7a3cd39c13627e849b9bbf9cc7d52b866f.zip
- 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. git-svn-id: svn://svn.icculus.org/quake3/trunk@1557 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server/sv_main.c')
-rw-r--r--code/server/sv_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c
index b509010..bce9c3d 100644
--- a/code/server/sv_main.c
+++ b/code/server/sv_main.c
@@ -57,6 +57,7 @@ cvar_t *sv_pure;
cvar_t *sv_floodProtect;
cvar_t *sv_lanForceRate; // dedicated 1 (LAN) server forces local client rates to 99999 (bug #491)
cvar_t *sv_strictAuth;
+cvar_t *sv_banFile;
serverBan_t serverBans[SERVER_MAXBANS];
int serverBansCount = 0;