diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-05 17:29:04 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-05 17:29:04 +0100 |
commit | 86ee779e22e9fc3a6f3add1935d3392e27df1dca (patch) | |
tree | 1d6d94fff63ea1532a574ba05b671767d94125bf | |
parent | df242de5c695b297cf96bcba5095158c87c3a93d (diff) | |
download | dnsmasq-86ee779e22e9fc3a6f3add1935d3392e27df1dca.tar.gz |
Make --server=/#/<addr> behave the same as --server=<addr>
For consistency with --address and older dnsmasq releases.
-rw-r--r-- | src/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index 588a558..146ca0c 100644 --- a/src/option.c +++ b/src/option.c @@ -3058,8 +3058,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma else flags &= ~SERV_FOR_NODOTS; - /* address=/#/ matches the same as without domain */ - if (option == 'A' && cur_domain[0] == '#' && cur_domain[1] == 0) + /* address=/#/ matches the same as without domain, as does server=/#/.... for consistency. */ + if (cur_domain[0] == '#' && cur_domain[1] == 0) cur_domain[0] = 0; } |