mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-29 12:50:47 +00:00
Tidy domain parsing, make --server=/*/1.2.3.4 equivalent to --server=1.2.3.4
This commit is contained in:
2 files changed
+16
-15
No files matched your search
+1
-5
@@ -2636,11 +2636,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
||||
{
|
||||
char *last;
|
||||
|
||||
arg++;
|
||||
/* elide leading dots - they are implied in the search algorithm */
|
||||
while (*arg == '.') arg++;
|
||||
|
||||
domain = lastdomain = arg;
|
||||
domain = lastdomain = ++arg;
|
||||
|
||||
while ((last = split_chr(arg, '/')))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user