diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-02-28 19:13:42 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-02-28 19:13:42 +0000 |
commit | 3ffc1e8934e5107835819227c7cf162b27d13682 (patch) | |
tree | 2b16bc10fdd76fd5386e1388f91decbbfe7caf90 /usr/local/www/vpn_l2tp.php | |
parent | 6f3ede4d37dff81acca2190ceb73eeecebebba59 (diff) | |
download | pfsense-3ffc1e8934e5107835819227c7cf162b27d13682.zip pfsense-3ffc1e8934e5107835819227c7cf162b27d13682.tar.gz |
Use the interface API rather than old style interface list building.
Diffstat (limited to 'usr/local/www/vpn_l2tp.php')
-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"; ?>> |