summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-12-04 11:05:54 -0500
committerjim-p <jimp@pfsense.org>2012-12-04 11:05:54 -0500
commit8cd9708e12a7a03cfd7e7ebacc5a8ac57aa2fa2f (patch)
tree86a8d8a27b54bcc6ba1ae97bec41f8539d95668c /usr/local/www
parent752c6ca8117e05e6bb74115d2199dab7ff99168d (diff)
downloadpfsense-8cd9708e12a7a03cfd7e7ebacc5a8ac57aa2fa2f.zip
pfsense-8cd9708e12a7a03cfd7e7ebacc5a8ac57aa2fa2f.tar.gz
Fix test to see if DHCP Relay is enabled.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_dhcp.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 0d968b5..268542e 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -201,17 +201,6 @@ $ifcfgsn = $config['interfaces'][$if]['subnet'];
* the two are not compatible with each other.
*/
-$dhcrelay_enabled = false;
-$dhcrelaycfg = $config['dhcrelay'];
-
-if(is_array($dhcrelaycfg)) {
- foreach ($dhcrelaycfg as $dhcrelayif => $dhcrelayifconf) {
- if (isset($dhcrelayifconf['enable']) && isset($iflist[$dhcrelayif]) &&
- (!link_interface_to_bridge($dhcrelayif)))
- $dhcrelay_enabled = true;
- }
-}
-
function is_inrange($test, $start, $end) {
if ( (ip2ulong($test) < ip2ulong($end)) && (ip2ulong($test) > ip2ulong($start)) )
return true;
@@ -641,7 +630,7 @@ include("head.inc");
<?php if ($input_errors) print_input_errors($input_errors); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php
- if ($dhcrelay_enabled) {
+ if ($config['dhcrelay']['enable']) {
echo gettext("DHCP Relay is currently enabled. Cannot enable the DHCP Server service while the DHCP Relay is enabled on any interface.");
include("fend.inc");
echo "</body>";
OpenPOWER on IntegriCloud