diff options
author | jim-p <jim@pingle.org> | 2010-05-08 12:19:37 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-05-08 12:19:37 -0400 |
commit | b008c1eb73d699305ce690038309f6a2804a092f (patch) | |
tree | a78e7dec90a75186f1aa5d875d80d9597c825c1d /usr | |
parent | 6180c3ae355ef2b69d4962ae90141d1d9082b201 (diff) | |
download | pfsense-b008c1eb73d699305ce690038309f6a2804a092f.zip pfsense-b008c1eb73d699305ce690038309f6a2804a092f.tar.gz |
Hide "Local Network" field when creating/editing an OpenVPN shared key server, because you can't push routes with shared key.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 6a022b7..f221b6b 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -382,10 +382,16 @@ function mode_change() { break; } switch(value) { - case "p2p_tls": case "p2p_shared_key": document.getElementById("client_opts").style.display="none"; document.getElementById("remote_opts").style.display=""; + document.getElementById("local_opts").style.display="none"; + document.getElementById("authmodetr").style.display="none"; + break; + case "p2p_tls": + document.getElementById("client_opts").style.display="none"; + document.getElementById("remote_opts").style.display=""; + document.getElementById("local_opts").style.display=""; document.getElementById("authmodetr").style.display="none"; break; case "server_user": @@ -393,12 +399,14 @@ function mode_change() { document.getElementById("authmodetr").style.display=""; document.getElementById("client_opts").style.display=""; document.getElementById("remote_opts").style.display="none"; + document.getElementById("local_opts").style.display=""; break; case "server_tls": document.getElementById("authmodetr").style.display="none"; default: document.getElementById("client_opts").style.display=""; document.getElementById("remote_opts").style.display="none"; + document.getElementById("local_opts").style.display=""; break; } } |