diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-16 17:22:59 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-16 17:22:59 -0500 |
commit | d6908784eefb646d925cf259be9bec876b213440 (patch) | |
tree | f64682ef3a66d4b3d639a266bbcce33c485dcf52 /usr/local/www/vpn_ipsec_phase1.php | |
parent | b8754cc85db7e92322f605bbb4b2f90bde90bb7f (diff) | |
download | pfsense-d6908784eefb646d925cf259be9bec876b213440.zip pfsense-d6908784eefb646d925cf259be9bec876b213440.tar.gz |
Contrary to some reports this is actually usable in some cases, just not
mandatory. Revert "myid_data and peerid_data fields are not relevant with asn1dn."
This reverts commit b8754cc85db7e92322f605bbb4b2f90bde90bb7f.
Diffstat (limited to 'usr/local/www/vpn_ipsec_phase1.php')
-rw-r--r-- | usr/local/www/vpn_ipsec_phase1.php | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 3da0049..5c7aec2 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -445,13 +445,10 @@ include("head.inc"); function myidsel_change() { index = document.iform.myid_type.selectedIndex; value = document.iform.myid_type.options[index].value; - if (value == 'myaddress') { - document.getElementById('myid_data').style.visibility = 'hidden'; - } else if (value == 'asn1dn') { - document.getElementById('myid_data').style.visibility = 'hidden'; - } else { - document.getElementById('myid_data').style.visibility = 'visible'; - } + if (value == 'myaddress') + document.getElementById('myid_data').style.visibility = 'hidden'; + else + document.getElementById('myid_data').style.visibility = 'visible'; } function iketype_change() { @@ -473,13 +470,10 @@ function iketype_change() { function peeridsel_change() { index = document.iform.peerid_type.selectedIndex; 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'; - } + if (value == 'peeraddress') + document.getElementById('peerid_data').style.visibility = 'hidden'; + else + document.getElementById('peerid_data').style.visibility = 'visible'; } function methodsel_change() { |