diff options
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index b3957a3..a90b8ae 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -357,7 +357,10 @@ function clearcombo(){ <input name="ipaddr" type="text" size="16" style="float: left;"> <select id="iface" name="iface" style="float: left; display: none;"> <?php - $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + if($config['interfaces']['lan']) + $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + else + $interfaces = array('wan' => 'WAN'); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; } |