diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-19 23:21:54 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-19 23:21:54 +0200 |
commit | b0b11b2295fbb8399949139d82156e123e005902 (patch) | |
tree | 1360c16987ee1afba702a99c07366e6b845d3e69 /interface-ip.c | |
parent | 69c5043fdcea724f59055630eb0cf593c41732cb (diff) |
move dns server/search list parsing to interface core to support peerdns=0 + static entries
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/interface-ip.c b/interface-ip.c index 1a22980..3b545ca 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -544,8 +544,10 @@ void interface_ip_set_enabled(struct interface_ip_settings *ip, bool enabled) void interface_ip_update_start(struct interface_ip_settings *ip) { - vlist_simple_update(&ip->dns_servers); - vlist_simple_update(&ip->dns_search); + if (ip != &ip->iface->config_ip) { + vlist_simple_update(&ip->dns_servers); + vlist_simple_update(&ip->dns_search); + } vlist_update(&ip->route); vlist_update(&ip->addr); } |