diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-17 15:25:55 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-17 15:25:55 -0200 |
commit | f4c40620dab99da0c52f21e7999b022fc3a35831 (patch) | |
tree | 602c10fbaa8a986bbe802c4f65699c54d29ffdc4 /usr/local/www | |
parent | e94692c09773126f2326294169b7b43d511d4ded (diff) | |
download | pfsense-f4c40620dab99da0c52f21e7999b022fc3a35831.zip pfsense-f4c40620dab99da0c52f21e7999b022fc3a35831.tar.gz |
Disable dhcp server when interface is disabled. Ticket #4119
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/interfaces.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index b3992e9..5498b64 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -423,8 +423,12 @@ if ($_POST['apply']) { if (isset($config['interfaces'][$ifapply]['enable'])) { interface_bring_down($ifapply, false, $ifcfgo); interface_configure($ifapply, true); - } else + } else { interface_bring_down($ifapply, true, $ifcfgo); + if (isset($config['dhcpd'][$ifapply]['enable']) || + isset($config['dhcpdv6'][$ifapply]['enable'])) + services_dhcpd_configure(); + } } } /* restart snmp so that it binds to correct address */ |