mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not check disabled interfaces, ticket #4119
This commit is contained in:
parent
2ae99d06ce
commit
a030a43720
@ -57,9 +57,12 @@ $iflist = get_configured_interface_with_descr();
|
||||
*/
|
||||
$dhcpd_enabled = false;
|
||||
if (is_array($config['dhcpd'])) {
|
||||
foreach($config['dhcpd'] as $dhcp)
|
||||
if (isset($dhcp['enable']))
|
||||
foreach($config['dhcpd'] as $dhcpif => $dhcp) {
|
||||
if (isset($dhcp['enable']) && isset($config['interfaces'][$dhcpif]['enable'])) {
|
||||
$dhcpd_enabled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
@ -58,9 +58,12 @@ $iflist = get_configured_interface_with_descr();
|
||||
*/
|
||||
$dhcpd_enabled = false;
|
||||
if (is_array($config['dhcpdv6'])) {
|
||||
foreach($config['dhcpdv6'] as $dhcp)
|
||||
if (isset($dhcp['enable']))
|
||||
foreach($config['dhcpdv6'] as $dhcp) {
|
||||
if (isset($dhcp['enable']) && isset($config['interfaces'][$dhcpif]['enable'])) {
|
||||
$dhcpd_enabled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user