Fix previous commit and parsing of ipmasks like 127/8.
[ircu2.10.12-pk.git] / ircd / ircd_string.c
index bfdceb5aac22c8bec4f660bab9e5c5865621fcc5..52caed58499033be7ec450e3716fa186446a5e21 100644 (file)
@@ -628,7 +628,7 @@ ipmask_parse(const char *input, struct irc_in_addr *ip, unsigned char *pbits)
         ip->in6_16[colon + jj] = 0;
     }
     return pos;
-  } else if (dot) {
+  } else if (dot || strchr(input, '/')) {
     unsigned int addr;
     int len = ircd_aton_ip4(input, &addr, pbits);
     if (len) {