Rename <connectban:duration> to <connectban:banduration>.

This commit is contained in:
Sadie Powell 2022-03-22 15:27:39 +00:00
parent 8addeb78b7
commit c87703e2a7
2 changed files with 4 additions and 4 deletions

View File

@ -693,8 +693,8 @@
# banmessage - The message to give users when Z-lining them for connecting
# too much.
#
# duration - The time period to ban users who connect to much for. Defaults
# to 10 minutes.
# banduration - The time period to ban users who connect to much for. Defaults
# to 10 minutes.
#
# ipv4cidr - The IPv4 CIDR mask (1-32) to treat connecting users as coming
# from the same host. Defaults to 32.
@ -710,7 +710,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."
# duration="10m"
# banduration="10m"
# ipv4cidr="32"
# ipv6cidr="128"
# bootwait="2m"

View File

@ -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("duration", 10*60, 1);
banduration = tag->getDuration("banduration", tag->getDuration("duration", 10*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)