mirror of
https://github.com/pissnet/angiosperm.git
synced 2025-05-01 01:55:04 +01:00
remove RB_IPV6
This commit is contained in:
parent
f21ef0cebc
commit
de2934965c
34 changed files with 15 additions and 336 deletions
modules
|
@ -123,11 +123,9 @@ mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
|||
/* parses as an IP, check for a dline */
|
||||
if((type = parse_netmask(host, &ip, &host_mask)) != HM_HOST)
|
||||
{
|
||||
#ifdef RB_IPV6
|
||||
if(type == HM_IPV6)
|
||||
aconf = find_dline((struct sockaddr *)&ip, AF_INET6);
|
||||
else
|
||||
#endif
|
||||
aconf = find_dline((struct sockaddr *)&ip, AF_INET);
|
||||
|
||||
if(aconf && aconf->status & CONF_DLINE)
|
||||
|
@ -175,9 +173,7 @@ mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
|||
if((aconf = find_address_conf(host, NULL, user_trunc, notildeuser_trunc,
|
||||
(type != HM_HOST) ? (struct sockaddr *)&ip : NULL,
|
||||
(type != HM_HOST) ? (
|
||||
#ifdef RB_IPV6
|
||||
(type == HM_IPV6) ? AF_INET6 :
|
||||
#endif
|
||||
AF_INET) : 0, NULL)))
|
||||
{
|
||||
static char buf[HOSTLEN+USERLEN+2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue