summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-19 23:21:54 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-19 23:21:54 +0200
commitb0b11b2295fbb8399949139d82156e123e005902 (patch)
tree1360c16987ee1afba702a99c07366e6b845d3e69 /interface-ip.c
parent69c5043fdcea724f59055630eb0cf593c41732cb (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.c6
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);
}