summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_l2tp.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-02-28 19:13:42 +0000
committerErmal Luçi <eri@pfsense.org>2009-02-28 19:13:42 +0000
commit3ffc1e8934e5107835819227c7cf162b27d13682 (patch)
tree2b16bc10fdd76fd5386e1388f91decbbfe7caf90 /usr/local/www/vpn_l2tp.php
parent6f3ede4d37dff81acca2190ceb73eeecebebba59 (diff)
downloadpfsense-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.php6
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"; ?>>
OpenPOWER on IntegriCloud