]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Revert part of the patch that broke IPv6 trie nodes.
authorGunnar Beutner <redacted>
Thu, 1 Aug 2013 14:35:12 +0000 (16:35 +0200)
committerGunnar Beutner <redacted>
Thu, 1 Aug 2013 14:35:12 +0000 (16:35 +0200)
--HG--
branch : shroudtrusts

nick/nickhandlers.c

index 3a330aa797a92e87a482439d48cafb5fce84a084..b704f31ab27b417764be1c9a1ed0cf7ee1e29926 100644 (file)
@@ -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;