diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-16 19:43:12 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-16 19:48:25 +0200 |
commit | d4920165fe753751aaa274fdc568927d26284eea (patch) | |
tree | 0b537258c9bea6254b36fc4b54a9101cd8d66ac8 /src/network/networkd-manager.c | |
parent | 7b4d79683998a78d6e123dd034b1e06b74d8030b (diff) |
networkd: network - store DNS servers in List rather than Set
This way we preserve the order of preference.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 1b14e9d4f1..013b1dc975 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -525,9 +525,8 @@ int manager_update_resolv_conf(Manager *m) { HASHMAP_FOREACH(link, m->links, i) { if (link->network && link->network->dns) { Address *address; - Iterator j; - SET_FOREACH(address, link->network->dns, j) { + LIST_FOREACH(addresses, address, link->network->dns) { append_dns(f, &address->in_addr.in, address->family, &count); } |