]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: use ipv6_accept_ra_use_dns rather than dhcp_use_dns (#8836)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Wed, 2 May 2018 18:16:10 +0000 (23:46 +0530)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 May 2018 18:16:10 +0000 (20:16 +0200)
While Saving the DNS server use [IPv6AcceptRA] UseDNS= that is
ipv6_accept_ra_use_dns.

Closes #8420

src/network/networkd-link.c

index e4c672b33ddf3795db53f756d02d5fe2cecf7706..be0742e47b3462c746f22d56918f757e2bddacfb 100644 (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) {