diff options
author | jim-p <jimp@pfsense.org> | 2017-05-22 12:15:13 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-05-22 12:15:13 -0400 |
commit | d44942d3477c609e37794dc31c36fcd5c4435fbb (patch) | |
tree | 7ec10fab19b1f95e52c48a9be10664a87ca28548 | |
parent | 0116009a07f7f0f8c25e4306485102b5432676f4 (diff) | |
download | pfsense-d44942d3477c609e37794dc31c36fcd5c4435fbb.zip pfsense-d44942d3477c609e37794dc31c36fcd5c4435fbb.tar.gz |
Remove refs to defunct OpenVPN client manager port. Fixes #7568
-rw-r--r-- | src/usr/local/www/vpn_openvpn_server.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php index 75bd2dc..3f7ff4a 100644 --- a/src/usr/local/www/vpn_openvpn_server.php +++ b/src/usr/local/www/vpn_openvpn_server.php @@ -228,11 +228,6 @@ if ($act == "edit") { $pconfig['wins_server_enable'] = true; } - $pconfig['client_mgmt_port'] = $a_server[$id]['client_mgmt_port']; - if ($pconfig['client_mgmt_port']) { - $pconfig['client_mgmt_port_enable'] = true; - } - $pconfig['nbdd_server1'] = $a_server[$id]['nbdd_server1']; if ($pconfig['nbdd_server1']) { $pconfig['nbdd_server_enable'] = true; @@ -402,12 +397,6 @@ if ($_POST['save']) { } } - if ($pconfig['client_mgmt_port_enable']) { - if ($result = openvpn_validate_port($pconfig['client_mgmt_port'], 'Client management port')) { - $input_errors[] = $result; - } - } - if ($pconfig['maxclients'] && !is_numericint($pconfig['maxclients'])) { $input_errors[] = gettext("The field 'Concurrent connections' must be numeric."); } @@ -611,10 +600,6 @@ if ($_POST['save']) { } } - if ($pconfig['client_mgmt_port_enable']) { - $server['client_mgmt_port'] = $pconfig['client_mgmt_port']; - } - if ($_POST['duplicate_cn'] == "yes") { $server['duplicate_cn'] = true; } @@ -1292,21 +1277,6 @@ if ($act=="new" || $act=="edit"): $pconfig['wins_server2'] )); - $section->addInput(new Form_Checkbox( - 'client_mgmt_port_enable', - 'Enable custom port ', - 'Use a different management port for clients.', - $pconfig['client_mgmt_port_enable'] - )); - - $section->addInput(new Form_Input( - 'client_mgmt_port', - 'Management port', - 'number', - $pconfig['client_mgmt_port'] - ))->setHelp('The default port is 166. Specify a different port if the client machines need to select from multiple OpenVPN links.'); - - $form->add($section); $section = new Form_Section('Advanced Configuration'); @@ -1641,11 +1611,6 @@ events.push(function() { hideInput('wins_server2', hide); } - function client_mgmt_port_change() { - var hide = ! $('#client_mgmt_port_enable').prop('checked') - - hideInput('client_mgmt_port', hide); - } function ntp_server_change() { var hide = ! $('#ntp_server_enable').prop('checked') @@ -1661,8 +1626,6 @@ events.push(function() { hideInput('netbios_scope', hide); hideCheckbox('wins_server_enable', hide); wins_server_change(); -// hideCheckbox('client_mgmt_port_enable', hide); -// client_mgmt_port_change(); } function tuntap_change() { @@ -1752,11 +1715,6 @@ events.push(function() { netbios_change(); }); - // Client management port - $('#client_mgmt_port_enable').click(function () { - client_mgmt_port_change(); - }); - // Wins server port $('#wins_server_enable').click(function () { wins_server_change(); @@ -1867,7 +1825,6 @@ events.push(function() { dns_domain_change(); dns_server_change(); wins_server_change(); - client_mgmt_port_change(); ntp_server_change(); netbios_change(); tuntap_change(); |