diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-24 09:44:44 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-24 09:44:44 +0100 |
commit | 0771969b40bb37d0aa8b8d66fbd17b5176957231 (patch) | |
tree | 2ace82b7908ede08bab24ca50bfed3f1210d58a7 /usr | |
parent | e0dd1fddd573e91171a737a6d0fcbc5d0f59cad0 (diff) | |
download | pfsense-0771969b40bb37d0aa8b8d66fbd17b5176957231.zip pfsense-0771969b40bb37d0aa8b8d66fbd17b5176957231.tar.gz |
Fixes #4015. Hide Negotiation mode when in IKEv2 since it is not required.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_ipsec_phase1.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index b49559f..f0d7413 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -416,6 +416,15 @@ function myidsel_change() { document.getElementById('myid_data').style.visibility = 'visible'; } +function iketype_change() { + index = document.iform.iketype.selectedIndex; + value = document.iform.iketype.options[index].value; + if (value == 'ikev2') + document.getElementById('negmode').style.display= 'none'; + else + document.getElementById('negmode').style.display = ''; +} + function peeridsel_change() { index = document.iform.peerid_type.selectedIndex; value = document.iform.peerid_type.options[index].value; @@ -567,7 +576,7 @@ function dpdchkbox_change() { <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Key Exchange version"); ?></td> <td width="78%" class="vtable"> - <select name="iketype" class="formselect"> + <select name="iketype" class="formselect" onchange='iketype_change()'> <?php $keyexchange = array("ikev1" => "V1", "ikev2" => "V2", "auto" => "Auto"); foreach ($keyexchange as $kidx => $name): @@ -683,7 +692,7 @@ function dpdchkbox_change() { </span> </td> </tr> - <tr> + <tr id='negmode' > <td width="22%" valign="top" class="vncellreq"><?=gettext("Negotiation mode"); ?></td> <td width="78%" class="vtable"> <select name="mode" class="formselect"> @@ -930,6 +939,7 @@ function dpdchkbox_change() { ?> myidsel_change(); peeridsel_change(); +iketype_change(); methodsel_change(); ealgosel_change(<?=$keyset;?>); dpdchkbox_change(); |