From: Gunnar Beutner Date: Thu, 1 Aug 2013 14:35:12 +0000 (+0200) Subject: Revert part of the patch that broke IPv6 trie nodes. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/057f5c47245e7b5ce0b93cce33ac5db5c7e1011a Revert part of the patch that broke IPv6 trie nodes. --HG-- branch : shroudtrusts --- diff --git a/nick/nickhandlers.c b/nick/nickhandlers.c index 3a330aa7..b704f31a 100644 --- a/nick/nickhandlers.c +++ b/nick/nickhandlers.c @@ -147,7 +147,7 @@ int handlenickmsg(void *source, int cargc, char **cargv) { memcpy(&(np->ipaddress), &ipaddress, sizeof(ipaddress)); ip_canonicalize_tunnel(&ipaddress_canonical, &ipaddress); - np->ipnode = refnode(iptree, &ipaddress_canonical, irc_in_addr_is_ipv4(&ipaddress) ? 128 : 64); + np->ipnode = refnode(iptree, &ipaddress_canonical, PATRICIA_MAXBITS); node_increment_usercount(np->ipnode); np->away=NULL;