From b008c1eb73d699305ce690038309f6a2804a092f Mon Sep 17 00:00:00 2001 From: jim-p Date: Sat, 8 May 2010 12:19:37 -0400 Subject: Hide "Local Network" field when creating/editing an OpenVPN shared key server, because you can't push routes with shared key. --- usr/local/www/vpn_openvpn_server.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'usr/local/www') 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; } } -- cgit v1.1