diff options
-rw-r--r-- | usr/local/www/vpn_l2tp.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index 41da308..d7fcb4c 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -271,11 +271,7 @@ function enable_change(enable_over) { <select name="interface" class="formselect" id="interface"> <?php - $interfaces = array('lan' => 'LAN', 'wan' => 'WAN'); - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { - if (isset($config['interfaces']['opt' . $i]['enable'])) - $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; - } + $interfaces = get_configured_interfaces_with_descr(); foreach ($interfaces as $iface => $ifacename): ?> <option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>> |