summaryrefslogtreecommitdiff
path: root/src/dhcp-common.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2023-04-12 22:55:14 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2023-04-12 22:55:14 +0100
commitaaba66efbd3b4e7283993ca3718df47706a8549b (patch)
treee17877af52d9ae0e71c3294127ad46a642f813f3 /src/dhcp-common.c
parent597378cdf55b248a54b930fa31acbad7415aaefd (diff)
downloaddnsmasq-aaba66efbd3b4e7283993ca3718df47706a8549b.tar.gz
Add --no-dhcpv4-interface and --no-dhcpv6-interface options.
Diffstat (limited to 'src/dhcp-common.c')
-rw-r--r--src/dhcp-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-common.c b/src/dhcp-common.c
index 360cdc5..b004e40 100644
--- a/src/dhcp-common.c
+++ b/src/dhcp-common.c
@@ -557,7 +557,7 @@ char *whichdevice(void)
return NULL;
for (found = NULL, iface = daemon->interfaces; iface; iface = iface->next)
- if (iface->dhcp_ok)
+ if (iface->dhcp4_ok || iface->dhcp6_ok)
{
if (!found)
found = iface;