mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Allow empty server spec in --rev-server, to match --server.
This commit is contained in:
@@ -2618,9 +2618,14 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
||||
struct in6_addr addr6;
|
||||
|
||||
unhide_metas(arg);
|
||||
if (!arg || !(comma=split(arg)) || !(string = split_chr(arg, '/')) || !atoi_check(string, &size))
|
||||
if (!arg)
|
||||
ret_err(gen_err);
|
||||
|
||||
comma=split(arg);
|
||||
|
||||
if (!(string = split_chr(arg, '/')) || !atoi_check(string, &size))
|
||||
ret_err(gen_err);
|
||||
|
||||
if (inet_pton(AF_INET, arg, &addr4))
|
||||
{
|
||||
serv = add_rev4(addr4, size);
|
||||
|
||||
Reference in New Issue
Block a user