summaryrefslogtreecommitdiffstats
path: root/ipset_iptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipset_iptree.c')
-rw-r--r--ipset_iptree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipset_iptree.c b/ipset_iptree.c
index 0c23c99..f77da19 100644
--- a/ipset_iptree.c
+++ b/ipset_iptree.c
@@ -83,10 +83,9 @@ adt_parser(unsigned cmd, const char *optarg, void *data)
DP("iptree: %p %p", optarg, data);
- if ((ptr = strchr(tmp, ':')) || (ptr = strchr(tmp, '%')))
- fprintf(stderr, "Warning: please replace old separator character '%s.1' with ','.\n"
- "Next release won't support it.\n",
- ptr);
+ if (((ptr = strchr(tmp, ':')) || (ptr = strchr(tmp, '%'))) && ++warn_once == 1)
+ fprintf(stderr, "Warning: please use ',' separator token between ip,timeout.\n"
+ "Next release won't support old separator tokens.\n");
ptr = strsep(&tmp, ":%,");
parse_ip(ptr, &mydata->ip);