summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php
index 2c9006c..8adea58 100644
--- a/usr/local/www/vpn_ipsec_phase1.php
+++ b/usr/local/www/vpn_ipsec_phase1.php
@@ -503,7 +503,9 @@ function myidsel_change() {
value = document.iform.myid_type.options[index].value;
if (value == 'myaddress') {
document.getElementById('myid_data').style.visibility = 'hidden';
- } else {
+ } else if (value == 'asn1dn') {
+ document.getElementById('myid_data').style.visibility = 'hidden';
+ } else {
document.getElementById('myid_data').style.visibility = 'visible';
}
}
@@ -529,6 +531,8 @@ function peeridsel_change() {
value = document.iform.peerid_type.options[index].value;
if (value == 'peeraddress') {
document.getElementById('peerid_data').style.visibility = 'hidden';
+ } else if (value == 'asn1dn') {
+ document.getElementById('peerid_data').style.visibility = 'hidden';
} else {
document.getElementById('peerid_data').style.visibility = 'visible';
}
OpenPOWER on IntegriCloud