Enhance --synth-domain to allow names with sequential integers.

This commit is contained in:
Simon Kelley committed 2018-03-10 20:25:57 +00:00
1 parent 4f7bb57e97
commit 6b2b564ac3
5 files changed
+175 -88

No files matched your search

+8 -1
View File
@@ -2071,7 +2071,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
char *netpart;
new->prefix = NULL;
new->indexed = 0;
unhide_metas(comma);
if ((netpart = split_chr(comma, '/')))
{
@@ -2208,8 +2209,14 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
}
else
{
char *star;
new->next = daemon->synth_domains;
daemon->synth_domains = new;
if ((star = strrchr(new->prefix, '*')) && *(star+1) == 0)
{
*star = 0;
new->indexed = 1;
}
}
}
else if (option == 's')