projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix previous commit and parsing of ipmasks like 127/8.
[ircu2.10.12-pk.git]
/
ircd
/
ircd_string.c
diff --git
a/ircd/ircd_string.c
b/ircd/ircd_string.c
index bfdceb5aac22c8bec4f660bab9e5c5865621fcc5..52caed58499033be7ec450e3716fa186446a5e21 100644
(file)
--- a/
ircd/ircd_string.c
+++ b/
ircd/ircd_string.c
@@
-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) {