Fix failure to start with ENOTSOCK

This commit is contained in:
Simon Kelley
2013-05-17 11:32:03 +01:00
parent 3f2873d42c
commit cfcad42ff1
2 changed files with 7 additions and 1 deletions

View File

@@ -31,7 +31,13 @@ version 2.67
want to continue to bind the aliases too, you need to add
eg. --interface=eth0:0 to the config.
Fix "failed to set SO_BINDTODEVICE on DHCP socket: Socket
operation on non-socket" error on startup with
configurations which have exactly one --interface option
and do RA but _not_ DHCPv6. Thanks to Trever Adams for the
bug report.
version 2.66
Add the ability to act as an authoritative DNS
server. Dnsmasq can now answer queries from the wider 'net

View File

@@ -248,7 +248,7 @@ int main (int argc, char **argv)
#endif
#if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP6)
if (daemon->dhcp6)
if (daemon->doing_dhcp6)
bindtodevice(daemon->dhcp6fd);
#endif
}