mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Make --server=/#/<addr> behave the same as --server=<addr>
For consistency with --address and older dnsmasq releases.
This commit is contained in:
@@ -3058,8 +3058,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
|||||||
else
|
else
|
||||||
flags &= ~SERV_FOR_NODOTS;
|
flags &= ~SERV_FOR_NODOTS;
|
||||||
|
|
||||||
/* address=/#/ matches the same as without domain */
|
/* address=/#/ matches the same as without domain, as does server=/#/.... for consistency. */
|
||||||
if (option == 'A' && cur_domain[0] == '#' && cur_domain[1] == 0)
|
if (cur_domain[0] == '#' && cur_domain[1] == 0)
|
||||||
cur_domain[0] = 0;
|
cur_domain[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user