summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-11-22 08:43:57 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-11-22 08:53:15 -0700
commitd48dbceb9570a322e0ce8a7200847eeddfac22f9 (patch)
tree9039fcb50a5401e3d011cfa6277ab8f71b454a48 /usr/local
parente63d59c0c27d03ad21b605b12276228f2487a44e (diff)
downloadpfsense-d48dbceb9570a322e0ce8a7200847eeddfac22f9.zip
pfsense-d48dbceb9570a322e0ce8a7200847eeddfac22f9.tar.gz
Add other interfaces to local network selection and show proper names. Fixes #965
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/vpn_ipsec_phase2.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php
index f8d601d..b20fe0c 100644
--- a/usr/local/www/vpn_ipsec_phase2.php
+++ b/usr/local/www/vpn_ipsec_phase2.php
@@ -358,7 +358,12 @@ function change_protocol() {
<select name="localid_type" class="formselect" onChange="typesel_change_local()">
<option value="address" <?php if ($pconfig['localid_type'] == "address") echo "selected";?>><?=gettext("Address"); ?></option>
<option value="network" <?php if ($pconfig['localid_type'] == "network") echo "selected";?>><?=gettext("Network"); ?></option>
- <option value="lan" <?php if ($pconfig['localid_type'] == "lan" ) echo "selected";?>><?=gettext("LAN subnet"); ?></option>
+ <?php
+ $iflist = get_configured_interface_with_descr();
+ foreach ($iflist as $ifname => $ifdescr):
+ ?>
+ <option value="<?=$ifname; ?>" <?php if ($pconfig['localid_type'] == $ifname ) echo "selected";?>><?=sprintf(gettext("%s subnet"), $ifdescr); ?></option>
+ <?php endforeach; ?>
<option value="none" <?php if ($pconfig['localid_type'] == "none" ) echo "selected";?>><?=gettext("None"); ?></option>
</select>
</td>
OpenPOWER on IntegriCloud