diff options
| author | 2022-04-05 17:45:46 +0100 | |
|---|---|---|
| committer | 2022-04-05 18:28:31 +0100 | |
| commit | e5a724595ff37ad8d050299fbdc94d62802c093d (patch) | |
| tree | 129c5ba586337fce039d0db1b81fbd69049d33f2 /src/modules/m_connectban.cpp | |
| parent | Fix the cban and connectban modules sending out duplicate snotices. (diff) | |
Default connectban cidr ranges to the values specified in <cidr>.
Diffstat (limited to 'src/modules/m_connectban.cpp')
| -rw-r--r-- | src/modules/m_connectban.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
