diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 03:47:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 03:47:07 +0000 |
commit | afb16a463489e5c80646cd00c019379b2c0ff1c4 (patch) | |
tree | 3992e548c7a9c0bfdfc049dc02c4b4555158b162 /usr | |
parent | 52218da45056f3a3cdb32bb6ae76f378025e780d (diff) | |
download | pfsense-afb16a463489e5c80646cd00c019379b2c0ff1c4.zip pfsense-afb16a463489e5c80646cd00c019379b2c0ff1c4.tar.gz |
Show WAN if LAN is not enabled.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 25a34bd..309376c 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -46,8 +46,11 @@ if($config['installedpackages']['olsrd']) { } } -if(!$iflist) - $iflist = array("lan" => "LAN"); +if($config['interfaces']['lan']) + if(!$iflist) + $iflist = array("lan" => "LAN"); +else + $iflist = array("wan" => $g['wan_interface_name']); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $oc = $config['interfaces']['opt' . $i]; |