mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09: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"
|
#<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."
|
# 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"
|
# ipv4cidr="32"
|
||||||
# ipv6cidr="128"
|
# ipv6cidr="128"
|
||||||
# bootwait="2m"
|
# bootwait="2m"
|
||||||
|
@ -109,7 +109,7 @@ class ModuleConnectBan CXX11_FINAL
|
|||||||
threshold = tag->getUInt("threshold", 10, 1);
|
threshold = tag->getUInt("threshold", 10, 1);
|
||||||
bootwait = tag->getDuration("bootwait", 60*2);
|
bootwait = tag->getDuration("bootwait", 60*2);
|
||||||
splitwait = tag->getDuration("splitwait", 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.");
|
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)
|
if (status.initial)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user