Re: white-listing in hosts_allow plugin

[email protected] ("Jared Johnson")
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
>     return DENYSOFT_DISCONNECT, 'Too many connections from your class C'
>         if ( grep {(ip_to_int($_)&0xffffff00) == $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 be @{ $arg{child_addrs} }, not @{ $arg->{child_addrs} } :)

>             > $c_limit;
>     return NEXT;
> }
>

-Jared
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.