diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-05-12 23:24:13 -0500 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2016-05-12 23:24:13 -0500 |
commit | 1a444f88e58ce18617324c41ea2bdf0cedfa2f9e (patch) | |
tree | 0ed4cab7ce4ed5990c44a328497915ff3a4d30e1 /src/etc/inc/interfaces.inc | |
parent | e02a27561766ad8a3ba39eb18fd622228adf5363 (diff) | |
download | pfsense-1a444f88e58ce18617324c41ea2bdf0cedfa2f9e.zip pfsense-1a444f88e58ce18617324c41ea2bdf0cedfa2f9e.tar.gz |
Unbound and dnsmasq can both be enabled so restart both if need be
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 36cb8d6..c70333c 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1204,10 +1204,11 @@ function interfaces_configure() { /* reload dhcpd (interface enabled/disabled status may have changed) */ services_dhcpd_configure(); - /* restart dnsmasq or unbound */ if (isset($config['dnsmasq']['enable'])) { services_dnsmasq_configure(); - } elseif (isset($config['unbound']['enable'])) { + } + + if (isset($config['unbound']['enable'])) { services_unbound_configure(); } } @@ -3469,10 +3470,11 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven /* reload ipsec tunnels */ send_event("service reload ipsecdns"); - /* restart dnsmasq or unbound */ if (isset($config['dnsmasq']['enable'])) { services_dnsmasq_configure(); - } elseif (isset($config['unbound']['enable'])) { + } + + if (isset($config['unbound']['enable'])) { services_unbound_configure(); } |