mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Report multiple hostnames in --dhcp-host.
This is not supported, and doesn't behave as one might expect.
This commit is contained in:
committed by
Simon Kelley
parent
da2cc84854
commit
6c9bc0156a
@@ -4155,6 +4155,11 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
||||
}
|
||||
else if (strcmp(arg, "ignore") == 0)
|
||||
new->flags |= CONFIG_DISABLE;
|
||||
if (new->hostname)
|
||||
{
|
||||
dhcp_config_free(new);
|
||||
ret_err(_("DHCP host has multiple names"));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(new->hostname = canonicalise_opt(arg)) ||
|
||||
|
||||
Reference in New Issue
Block a user