]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: save the real rdnss address
authorRonan Pigott <ronan@rjp.ie>
Thu, 28 Mar 2024 00:19:43 +0000 (17:19 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Mar 2024 00:30:42 +0000 (09:30 +0900)
... instead of the router that informed us

Fixes: 86a66e9b9504 ("network: also save NTP servers and friends obtained by other protocols")
src/network/networkd-state-file.c

index 117db0af6c30590ee00b76e25c41ea78807cb0ac..86746afc41abbfae77f9ed0cd278d73043b049d5 100644 (file)
@@ -127,7 +127,7 @@ static int link_put_dns(Link *link, OrderedSet **s) {
                 NDiscRDNSS *a;
 
                 SET_FOREACH(a, link->ndisc_rdnss) {
-                        r = ordered_set_put_in6_addrv(s, &a->router, 1);
+                        r = ordered_set_put_in6_addrv(s, &a->address, 1);
                         if (r < 0)
                                 return r;
                 }