summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 03:51:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 03:51:28 +0000
commit1c451b065f7ed104cbd28605381b1626cf0d651f (patch)
tree7caaca044e160e1df39829c4375f21a3a66e2797 /usr/local/www/services_dhcp.php
parent3d81372f1845ea9c50f9dd26a0f976f1f9641f6b (diff)
downloadpfsense-1c451b065f7ed104cbd28605381b1626cf0d651f.zip
pfsense-1c451b065f7ed104cbd28605381b1626cf0d651f.tar.gz
Set the starting interface when LAN does not exist to WAN.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 309376c..0895e16 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -60,9 +60,13 @@ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
}
}
-if (!$if || !isset($iflist[$if]))
- $if = "lan";
-
+/* set the starting interface */
+if($config['interfaces']['lan'])
+ if (!$if || !isset($iflist[$if]))
+ $if = "lan";
+else
+ $if = "wan";
+
$pconfig['range_from'] = $config['dhcpd'][$if]['range']['from'];
$pconfig['range_to'] = $config['dhcpd'][$if]['range']['to'];
$pconfig['deftime'] = $config['dhcpd'][$if]['defaultleasetime'];
OpenPOWER on IntegriCloud