about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorm!nus <m1nus@online.de>2011-01-22 19:54:05 +0100
committeroy <Tom_Adams@web.de>2011-01-23 17:54:27 +0100
commit05d274444a2d4ef1817e16de936a9f0707b237ae (patch)
treea628b1a352787a3e43c8a1d7ce2f3c661a585859 /src/engine
parent3727deee43dc9ae44135134ce48804496304b157 (diff)
downloadzcatch-05d274444a2d4ef1817e16de936a9f0707b237ae.tar.gz
zcatch-05d274444a2d4ef1817e16de936a9f0707b237ae.zip
Add banning to mastersrv: any packet from a banned IP (and optionally a fixed port) will be dropped (also affects clients. Put your bans into master.cfg: "ban 127.0.0.1" or "ban 127.0.0.1:8303". It's reloaded every 5 minutes. This change also adds IStorage, IConsole and IKernel to mastersrv.
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/shared/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/shared/config.h b/src/engine/shared/config.h
index 46698bd1..4720ddb3 100644
--- a/src/engine/shared/config.h
+++ b/src/engine/shared/config.h
@@ -19,7 +19,8 @@ enum
 	CFGFLAG_SAVE=1,
 	CFGFLAG_CLIENT=2,
 	CFGFLAG_SERVER=4,
-	CFGFLAG_STORE=8
+	CFGFLAG_STORE=8,
+	CFGFLAG_MASTER=16
 };
 
 #endif