diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 03:51:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 03:51:28 +0000 |
commit | 1c451b065f7ed104cbd28605381b1626cf0d651f (patch) | |
tree | 7caaca044e160e1df39829c4375f21a3a66e2797 /usr | |
parent | 3d81372f1845ea9c50f9dd26a0f976f1f9641f6b (diff) | |
download | pfsense-1c451b065f7ed104cbd28605381b1626cf0d651f.zip pfsense-1c451b065f7ed104cbd28605381b1626cf0d651f.tar.gz |
Set the starting interface when LAN does not exist to WAN.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 10 |
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']; |