1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:34:46 +02:00

set::connthrottle::disabled-when::reputation-gathering default of 1 week

was stated in docs at https://www.unrealircd.org/docs/Connthrottle but
if this item was not there then the default was actually zero (0).
Now, that isn't too common, since we ship with example.conf with the
connthrottle block as shown there, so lots of users have the proper
default, but just in case someone hand-writes or removed that connthrottle
settings block ("because they are the default)"... :)
This commit is contained in:
Bram Matthys
2026-05-06 09:39:40 +02:00
parent e5be93a9f8
commit 3e6f9f06e2
+1
View File
@@ -153,6 +153,7 @@ MOD_TEST()
cfg.local.count = 20; cfg.local.period = 60;
cfg.global.count = 30; cfg.global.period = 60;
cfg.start_delay = 180; /* 3 minutes */
cfg.reputation_gathering = 7*86400; /* 1 week */
safe_strdup(cfg.reason, "Throttled: Too many users trying to connect, please wait a while and try again");
cfg.except = safe_alloc(sizeof(SecurityGroup));
cfg.except->reputation_score = 24;