summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-06-10 12:33:32 +0200
committerSteven Barth <steven@midlink.org>2013-06-10 12:33:32 +0200
commitf8cf10f2623cbda18e429cc122952859d3e323a5 (patch)
tree66f4acab8cb36867c07f3a43511921b0858a3df7 /interface.c
parentdfb67585561ccd9bf735cfc5d5fba8401ca270c5 (diff)
Change IP reloading order
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 30e48cf..96f8e6d 100644
--- a/interface.c
+++ b/interface.c
@@ -874,9 +874,9 @@ interface_change_config(struct interface *if_old, struct interface *if_new)
if (reload_ip) {
interface_ip_set_enabled(&if_old->config_ip, false);
- interface_ip_set_enabled(&if_old->config_ip, if_new->config_ip.enabled);
interface_ip_set_enabled(&if_old->proto_ip, false);
interface_ip_set_enabled(&if_old->proto_ip, if_new->proto_ip.enabled);
+ interface_ip_set_enabled(&if_old->config_ip, if_new->config_ip.enabled);
}
interface_write_resolv_conf();