From e5a724595ff37ad8d050299fbdc94d62802c093d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 5 Apr 2022 17:45:46 +0100 Subject: Default connectban cidr ranges to the values specified in . --- src/modules/m_connectban.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_connectban.cpp') diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index 72a8eec05..fd3aeab26 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -104,8 +104,8 @@ class ModuleConnectBan CXX11_FINAL { ConfigTag* tag = ServerInstance->Config->ConfValue("connectban"); - ipv4_cidr = tag->getUInt("ipv4cidr", 32, 1, 32); - ipv6_cidr = tag->getUInt("ipv6cidr", 128, 1, 128); + ipv4_cidr = tag->getUInt("ipv4cidr", ServerInstance->Config->c_ipv4_range, 1, 32); + ipv6_cidr = tag->getUInt("ipv6cidr", ServerInstance->Config->c_ipv6_range, 1, 128); threshold = tag->getUInt("threshold", 10, 1); bootwait = tag->getDuration("bootwait", 60*2); splitwait = tag->getDuration("splitwait", 60*2); -- cgit v1.3.1-10-gc9f91