mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Don't use BINDTODEVICE on DHCP socket when relaying.
This commit is contained in:
@@ -237,16 +237,17 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
#if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP)
|
#if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP)
|
||||||
/* after enumerate_interfaces() */
|
/* after enumerate_interfaces() */
|
||||||
if (daemon->dhcp || daemon->relay4)
|
if (daemon->dhcp)
|
||||||
{
|
{
|
||||||
bindtodevice(daemon->dhcpfd);
|
if (!daemon->relay4)
|
||||||
|
bindtodevice(daemon->dhcpfd);
|
||||||
if (daemon->enable_pxe)
|
if (daemon->enable_pxe)
|
||||||
bindtodevice(daemon->pxefd);
|
bindtodevice(daemon->pxefd);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP6)
|
#if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP6)
|
||||||
if (daemon->doing_dhcp6 || daemon->relay6)
|
if (daemon->doing_dhcp6 && !daemon->relay6)
|
||||||
bindtodevice(daemon->dhcp6fd);
|
bindtodevice(daemon->dhcp6fd);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user