mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Only use ourselves as default DNS server for RA if we're doing DNS.
This makes RA the same as DHCP4/6
This commit is contained in:
@@ -300,9 +300,9 @@ static void send_ra(time_t now, int iface, char *iface_name, struct in6_addr *de
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!done_dns)
|
if (daemon->port == NAMESERVER_PORT && !done_dns)
|
||||||
{
|
{
|
||||||
/* default == us. */
|
/* default == us, as long as we are supplying DNS service. */
|
||||||
put_opt6_char(ICMP6_OPT_RDNSS);
|
put_opt6_char(ICMP6_OPT_RDNSS);
|
||||||
put_opt6_char(3);
|
put_opt6_char(3);
|
||||||
put_opt6_short(0);
|
put_opt6_short(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user