diff options
author | jim-p <jimp@pfsense.org> | 2010-12-02 09:14:19 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-02 09:14:19 -0500 |
commit | a2ff08f8c113f36487e5cac89de62b0eee323209 (patch) | |
tree | 9f90ac455a4fb3befbdb0e866bd5d4a166f4be64 | |
parent | b8e2fd16e45c21e9942da71020682a3b79f05a69 (diff) | |
download | pfsense-a2ff08f8c113f36487e5cac89de62b0eee323209.zip pfsense-a2ff08f8c113f36487e5cac89de62b0eee323209.tar.gz |
Disable redirect gateway checkbox when using shared key (you can't push with shared key). Also re-run the code to hide the local network box if the gw redirect is checked when switching server modes, since there is no need to push a specific local network when pushing the default gateway.
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 7cb4332..bfb2076 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -427,6 +427,7 @@ function mode_change() { case "p2p_shared_key": document.getElementById("client_opts").style.display="none"; document.getElementById("remote_opts").style.display=""; + document.getElementById("gwredir_opts").style.display="none"; document.getElementById("local_opts").style.display="none"; document.getElementById("authmodetr").style.display="none"; document.getElementById("inter_client_communication").style.display="none"; @@ -434,6 +435,7 @@ function mode_change() { case "p2p_tls": document.getElementById("client_opts").style.display="none"; document.getElementById("remote_opts").style.display=""; + document.getElementById("gwredir_opts").style.display=""; document.getElementById("local_opts").style.display=""; document.getElementById("authmodetr").style.display="none"; document.getElementById("inter_client_communication").style.display="none"; @@ -443,6 +445,7 @@ function mode_change() { document.getElementById("authmodetr").style.display=""; document.getElementById("client_opts").style.display=""; document.getElementById("remote_opts").style.display="none"; + document.getElementById("gwredir_opts").style.display=""; document.getElementById("local_opts").style.display=""; document.getElementById("inter_client_communication").style.display=""; break; @@ -451,10 +454,12 @@ function mode_change() { default: document.getElementById("client_opts").style.display=""; document.getElementById("remote_opts").style.display="none"; + document.getElementById("gwredir_opts").style.display=""; document.getElementById("local_opts").style.display=""; document.getElementById("inter_client_communication").style.display=""; break; } + gwredir_change(); } function autokey_change() { @@ -900,7 +905,7 @@ if ($savemsg) "to connecting clients. (see Address Pool)"); ?> </td> </tr> - <tr> + <tr id="gwredir_opts"> <td width="22%" valign="top" class="vncell"><?=gettext("Redirect Gateway"); ?></td> <td width="78%" class="vtable"> <table border="0" cellpadding="2" cellspacing="0"> |