diff options
author | jim-p <jimp@pfsense.org> | 2017-04-12 13:54:10 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-04-12 13:54:10 -0400 |
commit | 8769058c34333c01a5427619610ebdcce52140ba (patch) | |
tree | 014b5ba6bd78737bbe442a14d18f7140227fa444 | |
parent | a9348c49a1287ca22e014a35073d20b52aa43213 (diff) | |
download | pfsense-8769058c34333c01a5427619610ebdcce52140ba.zip pfsense-8769058c34333c01a5427619610ebdcce52140ba.tar.gz |
Properly hide TLS Key / TLS Type fields when changing to Shared Key mode for OpenVPN clients.
-rw-r--r-- | src/usr/local/www/vpn_openvpn_client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/vpn_openvpn_client.php b/src/usr/local/www/vpn_openvpn_client.php index 71f0072..caf7b46 100644 --- a/src/usr/local/www/vpn_openvpn_client.php +++ b/src/usr/local/www/vpn_openvpn_client.php @@ -1012,8 +1012,8 @@ events.push(function() { // Process "Automatically generate a shared TLS authentication key" checkbox function autotls_change() { - hideInput('tls', $('#autotls_enable').prop('checked') || !$('#tlsauth_enable').prop('checked')); - hideInput('tls_type', $('#autotls_enable').prop('checked') || !$('#tlsauth_enable').prop('checked')); + hideInput('tls', $('#autotls_enable').prop('checked') || !$('#tlsauth_enable').prop('checked') || ($('#mode').val() == 'p2p_shared_key')); + hideInput('tls_type', $('#autotls_enable').prop('checked') || !$('#tlsauth_enable').prop('checked') || ($('#mode').val() == 'p2p_shared_key')); } // ---------- Monitor elements for change and call the appropriate display functions ------------------------------ |