summaryrefslogtreecommitdiffstats
path: root/ipset_iptreemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipset_iptreemap.c')
-rw-r--r--ipset_iptreemap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipset_iptreemap.c b/ipset_iptreemap.c
index 141210f..72af5b8 100644
--- a/ipset_iptreemap.c
+++ b/ipset_iptreemap.c
@@ -76,10 +76,9 @@ adt_parser(unsigned int cmd, const char *optarg, void *data)
parse_ipandmask(tmp, &mydata->ip, &mask);
mydata->end = mydata->ip | ~mask;
} else {
- if ((ptr = strchr(tmp, ':')) != NULL)
- fprintf(stderr, "Warning: please replace old separator character '%s.1' with ','.\n"
- "Next release won't support it.\n",
- ptr);
+ if ((ptr = strchr(tmp, ':')) != NULL && ++warn_once == 1)
+ fprintf(stderr, "Warning: please use '-' separator token between IP range.\n"
+ "Next release won't support old separator token.\n");
ptr = strsep(&tmp, "-:");
parse_ip(ptr, &mydata->ip);