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.");
}
@@ -52,9+52,9 @@ class ModuleConnectBan : public Module
if (u->exempt)
return;
- int range = 32;
+ unsigned char range = 32;
- switch (u->client_sa.sa.sa_family)
+ switch (u->client_sa.family())
{
case AF_INET6:
range = ipv6_cidr;
@@ -95,7+95,7 @@ class ModuleConnectBan : public Module