Revision 4701c8de
Added by Phil Davis about 12 years ago
etc/inc/service-utils.inc | ||
---|---|---|
282 | 282 |
if ($oc['if'] && (!link_interface_to_bridge($if))) |
283 | 283 |
$iflist[$if] = $if; |
284 | 284 |
} |
285 |
$show_dhcprelay = false; |
|
286 |
foreach($iflist as $if) { |
|
287 |
if(isset($config['dhcrelay'][$if]['enable'])) |
|
288 |
$show_dhcprelay = true; |
|
289 |
} |
|
290 | 285 |
|
291 |
if($show_dhcprelay == true) {
|
|
286 |
if(isset($config['dhcrelay']['enable'])) {
|
|
292 | 287 |
$pconfig = array(); |
293 | 288 |
$pconfig['name'] = "dhcrelay"; |
294 | 289 |
$pconfig['description'] = gettext("DHCP Relay"); |
Also available in: Unified diff
Correctly decide if dhcrelay is enabled