mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #712 from phil-davis/master
Correctly decide if dhcrelay (v4) is enabled
This commit is contained in:
commit
da60727cea
@ -282,13 +282,8 @@ function get_services() {
|
||||
if ($oc['if'] && (!link_interface_to_bridge($if)))
|
||||
$iflist[$if] = $if;
|
||||
}
|
||||
$show_dhcprelay = false;
|
||||
foreach($iflist as $if) {
|
||||
if(isset($config['dhcrelay'][$if]['enable']))
|
||||
$show_dhcprelay = true;
|
||||
}
|
||||
|
||||
if($show_dhcprelay == true) {
|
||||
if(isset($config['dhcrelay']['enable'])) {
|
||||
$pconfig = array();
|
||||
$pconfig['name'] = "dhcrelay";
|
||||
$pconfig['description'] = gettext("DHCP Relay");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user