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:
committed by
Yu Watanabe
parent
607be850b9
commit
64761f38cc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user