1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

networkd: use ipv6_accept_ra_use_dns rather than dhcp_use_dns (#8836)

While Saving the DNS server use [IPv6AcceptRA] UseDNS= that is
ipv6_accept_ra_use_dns.

Closes #8420
This commit is contained in:
Susant Sahani 2018-05-02 23:46:10 +05:30 committed by Lennart Poettering
parent 3e7aa2edcd
commit b296797f1c

View File

@ -3531,7 +3531,7 @@ int link_save(Link *link) {
/* Make sure to flush out old entries before we use the NDISC data */
ndisc_vacuum(link);
if (link->network->dhcp_use_dns && link->ndisc_rdnss) {
if (link->network->ipv6_accept_ra_use_dns && link->ndisc_rdnss) {
NDiscRDNSS *dd;
SET_FOREACH(dd, link->ndisc_rdnss, i) {