summaryrefslogtreecommitdiffstats
path: root/ipset_ipportnethash.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipset_ipportnethash.c')
-rw-r--r--ipset_ipportnethash.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipset_ipportnethash.c b/ipset_ipportnethash.c
index 51297ff..4707189 100644
--- a/ipset_ipportnethash.c
+++ b/ipset_ipportnethash.c
@@ -199,10 +199,9 @@ adt_parser(unsigned cmd, const char *optarg, void *data)
DP("ipportnethash: %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,port,net.\n"
+ "Next release won't support old separator tokens.\n");
ptr = strsep(&tmp, ":%,");
parse_ip(ptr, &mydata->ip);