modules: more GET_SS_FAMILY() checking
This commit is contained in:
parent
570bbefb54
commit
032ef5ef9e
3 changed files with 4 additions and 4 deletions
|
@ -165,8 +165,8 @@ do_etrace(struct Client *source_p, int ipv4, int ipv6)
|
|||
target_p = ptr->data;
|
||||
|
||||
#ifdef RB_IPV6
|
||||
if((!ipv4 && target_p->localClient->ip.ss_family == AF_INET) ||
|
||||
(!ipv6 && target_p->localClient->ip.ss_family == AF_INET6))
|
||||
if((!ipv4 && GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET) ||
|
||||
(!ipv6 && GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET6))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -367,7 +367,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
|||
target_p->name, target_p->sockhost);
|
||||
|
||||
#ifdef RB_IPV6
|
||||
if (target_p->localClient->ip.ss_family == AF_INET6 &&
|
||||
if (GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET6 &&
|
||||
(show_ip(source_p, target_p) ||
|
||||
(source_p == target_p && !IsIPSpoof(target_p))) &&
|
||||
ipv4_from_ipv6((struct sockaddr_in6 *)&target_p->localClient->ip, &ip4))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue