mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-07 16:01:41 +00:00
import of dnsmasq-2.34.tar.gz
This commit is contained in:
1 parent
208b65c5cf
commit
1697269ce7
33 files changed
+3660
-2711
No files matched your search
@@ -403,6 +403,14 @@ void check_servers(struct daemon *daemon)
|
||||
{
|
||||
port = prettyprint_addr(&new->addr, daemon->namebuff);
|
||||
|
||||
/* 0.0.0.0 is nothing, the stack treats it like 127.0.0.1 */
|
||||
if (new->addr.sa.sa_family == AF_INET &&
|
||||
new->addr.in.sin_addr.s_addr == 0)
|
||||
{
|
||||
free(new);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (iface = daemon->interfaces; iface; iface = iface->next)
|
||||
if (sockaddr_isequal(&new->addr, &iface->addr))
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user