mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Make --quiet-dhcp apply to DHCPDISCOVER when client ignored.
This commit is contained in:
@@ -962,6 +962,8 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
|
|||||||
case DHCPDISCOVER:
|
case DHCPDISCOVER:
|
||||||
if (ignore || have_config(config, CONFIG_DISABLE))
|
if (ignore || have_config(config, CONFIG_DISABLE))
|
||||||
{
|
{
|
||||||
|
if (option_bool(OPT_QUIET_DHCP))
|
||||||
|
return 0;
|
||||||
message = _("ignored");
|
message = _("ignored");
|
||||||
opt = NULL;
|
opt = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user