mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Increase the default connectban ban duration from 10m to 6h.
10m is borderline useless for preventing bot floods.
This commit is contained in:
parent
e5a724595f
commit
f20fa911c4
@ -714,7 +714,7 @@
|
||||
#
|
||||
#<connectban threshold="10"
|
||||
# banmessage="Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect."
|
||||
# banduration="10m"
|
||||
# banduration="6h"
|
||||
# ipv4cidr="32"
|
||||
# ipv6cidr="128"
|
||||
# bootwait="2m"
|
||||
|
@ -109,7 +109,7 @@ class ModuleConnectBan CXX11_FINAL
|
||||
threshold = tag->getUInt("threshold", 10, 1);
|
||||
bootwait = tag->getDuration("bootwait", 60*2);
|
||||
splitwait = tag->getDuration("splitwait", 60*2);
|
||||
banduration = tag->getDuration("banduration", tag->getDuration("duration", 10*60), 1);
|
||||
banduration = tag->getDuration("banduration", tag->getDuration("duration", 6*60*60), 1);
|
||||
banmessage = tag->getString("banmessage", "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.");
|
||||
|
||||
if (status.initial)
|
||||
|
Loading…
x
Reference in New Issue
Block a user