network: save the real rdnss address

... instead of the router that informed us

Fixes: 86a66e9b95 ("network: also save NTP servers and friends obtained by other protocols")
This commit is contained in:
Ronan Pigott
2024-03-29 09:30:42 +09:00
committed by Yu Watanabe
parent 607be850b9
commit 64761f38cc
+1 -1
View 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;
}