> return DENYSOFT_DISCONNECT, 'Too many connections from your class C'
> if ( grep {(ip_to_int($_)&0xff00) == $mask}
> @{$arg->{child_addrs}} )
Though this code is still untested in its
heavily-modified-from-our-version form, I feel like I should point out
that should
> IIRC, the connections-per-ip code isn't in a plugin right now -- it's
> part of the main binary -- because it requires some sort of shared
> state which we don't have for plugins.
The checks do exist in the binaries but they don't have to, you can use
$arg{child_addrs} and $arg{remote_ip} in hoo