summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2016-09-28 16:32:41 +0000
committerJohn Crispin <john@phrozen.org>2016-11-21 12:13:51 +0100
commit5f425ed1e5f92397e27ec4f44820b6ef677b8134 (patch)
tree19750a4264c4102f6314a5cf026130c8f2abe8c7 /src
parenta94aff09bc3a36b7ebe6cdc90323f396fa2f78c8 (diff)
Respect interface "ignore" settings as documented.
The "ignore" option is correctly loaded. Actually observe it as documented. Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'src')
-rw-r--r--src/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 44b049d..8b0d945 100644
--- a/src/config.c
+++ b/src/config.c
@@ -696,10 +696,10 @@ void odhcpd_reload(void)
i->ndp = (master && master->ndp == RELAYD_RELAY) ?
RELAYD_RELAY : RELAYD_DISABLED;
- setup_router_interface(i, true);
- setup_dhcpv6_interface(i, true);
- setup_ndp_interface(i, true);
- setup_dhcpv4_interface(i, true);
+ setup_router_interface(i, !i->ignore);
+ setup_dhcpv6_interface(i, !i->ignore);
+ setup_ndp_interface(i, !i->ignore);
+ setup_dhcpv4_interface(i, !i->ignore);
} else {
close_interface(i);
}