This is especially useful if you only want to disable a few modules
that are (normally) automatically loaded by conf/modules.default.conf.
https://www.unrealircd.org/docs/Blacklist-module_directive
+* The except throttle { } block now also overrides any limitations from
+ set::max-unknown-connection-per-ip. Useful for WEBIRC/cgiirc gateways.
* The following extban modules are not new but are now enabled by default:
extbans/textban, extbans/timedban and extbans/msgbypass.
In case you don't like them, use blacklist-module as mentioned above.
j = 1;
- list_for_each_entry(acptr2, &unknown_list, lclient_node)
+ if (!Find_except(acptr, CONF_EXCEPT_THROTTLE))
{
- if (!strcmp(acptr->ip,GetIP(acptr2)))
+ list_for_each_entry(acptr2, &unknown_list, lclient_node)
{
- j++;
- if (j > iConf.max_unknown_connections_per_ip)
+ if (!strcmp(acptr->ip,GetIP(acptr2)))
{
- ircsnprintf(zlinebuf, sizeof(zlinebuf),
- "ERROR :Closing Link: [%s] (Too many unknown connections from your IP)"
- "\r\n",
- acptr->ip);
- (void)send(fd, zlinebuf, strlen(zlinebuf), 0);
- goto add_con_refuse;
+ j++;
+ if (j > iConf.max_unknown_connections_per_ip)
+ {
+ ircsnprintf(zlinebuf, sizeof(zlinebuf),
+ "ERROR :Closing Link: [%s] (Too many unknown connections from your IP)"
+ "\r\n",
+ acptr->ip);
+ (void)send(fd, zlinebuf, strlen(zlinebuf), 0);
+ goto add_con_refuse;
+ }
}
}
}