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,7 +4155,12 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
|||||||
}
|
}
|
||||||
else if (strcmp(arg, "ignore") == 0)
|
else if (strcmp(arg, "ignore") == 0)
|
||||||
new->flags |= CONFIG_DISABLE;
|
new->flags |= CONFIG_DISABLE;
|
||||||
else
|
if (new->hostname)
|
||||||
|
{
|
||||||
|
dhcp_config_free(new);
|
||||||
|
ret_err(_("DHCP host has multiple names"));
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (!(new->hostname = canonicalise_opt(arg)) ||
|
if (!(new->hostname = canonicalise_opt(arg)) ||
|
||||||
!legal_hostname(new->hostname))
|
!legal_hostname(new->hostname))
|
||||||
|
|||||||
Reference in New Issue
Block a user