summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-22 16:40:39 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-22 16:40:39 -0400
commit27fc3a13e445f89003c23d43779a605f0172d030 (patch)
treeb4a44cd854ef1d8791142bdd01d1a903dfd4dcc4
parent66855de6b2b669278ec63391ba331439b4a095ad (diff)
downloadpfsense-27fc3a13e445f89003c23d43779a605f0172d030.zip
pfsense-27fc3a13e445f89003c23d43779a605f0172d030.tar.gz
Fixed #5189
-rw-r--r--src/usr/local/www/vpn_openvpn_server.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php
index 86fb460..424659a 100644
--- a/src/usr/local/www/vpn_openvpn_server.php
+++ b/src/usr/local/www/vpn_openvpn_server.php
@@ -1357,7 +1357,7 @@ events.push(function(){
hideInput('dh_length', false);
hideInput('cert_depth', false);
hideInput('strictusercn', true);
- hideInput('autokey_enable', false);
+ hideCheckbox('autokey_enable', true);
hideInput('shared_key', false);
break;
case "server_tls_user":
@@ -1366,7 +1366,7 @@ events.push(function(){
hideInput('dh_length', false);
hideInput('cert_depth', false);
hideInput('strictusercn', false);
- hideInput('autokey_enable', true);
+ hideCheckbox('autokey_enable', true);
hideInput('shared_key', true);
break;
case "p2p_shared_key":
@@ -1380,7 +1380,7 @@ events.push(function(){
hideInput('dh_length', true);
hideInput('cert_depth', true);
hideInput('strictusercn', true);
- hideInput('autokey_enable', false);
+ hideCheckbox('autokey_enable', true);
hideInput('shared_key', false);
break;
}
@@ -1395,6 +1395,7 @@ events.push(function(){
hideInput('local_networkv6', true);
hideMultiClass('authmode', true);
hideCheckbox('client2client', true);
+ hideCheckbox('autokey_enable', false);
break;
case "p2p_tls":
hideClass('advanced', true);
@@ -1416,9 +1417,11 @@ events.push(function(){
hideInput('local_networkv6', false);
hideMultiClass('authmode', false);
hideCheckbox('client2client', false);
+ hideCheckbox('autokey_enable', true);
break;
case "server_tls":
hideMultiClass('authmode', true);
+ hideCheckbox('autokey_enable', true);
default:
hideInput('custom_options', false);
hideInput('verbosity_level', false);
@@ -1438,7 +1441,7 @@ events.push(function(){
// Process "Enable authentication of TLS packets" checkbox
function tlsauth_change() {
- hideCheckbox('autotls_enable', !$('#tlsauth_enable').prop('checked') && ($('#mode').val() != 'p2p_shared_key'));
+ hideCheckbox('autotls_enable', !$('#tlsauth_enable').prop('checked') || ($('#mode').val() == 'p2p_shared_key'));
autotls_change();
}
OpenPOWER on IntegriCloud