mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
OpenVPN: remove keepalive, its already hardcoded
This commit is contained in:
parent
e434284391
commit
0b2a4e64ff
@ -394,7 +394,6 @@ EOD;
|
||||
if (!empty($settings['tls'])) $openvpn_conf .= "tls-auth {$g['varetc_path']}/openvpn_server{$id}.tls 0\n";
|
||||
if (!empty($settings['maxclients'])) $openvpn_conf .= "max-clients {$settings['maxclients']}\n";
|
||||
if ($settings['gwredir']) $openvpn_conf .= "push \"redirect-gateway def1\"\n";
|
||||
if ($settings['keepalive']) $openvpn_conf .= "keepalive 12 120\n";
|
||||
}
|
||||
|
||||
else { // $mode == client
|
||||
@ -555,7 +554,6 @@ function openvpn_resync_csc($id) {
|
||||
if (!empty($settings['dhcp_nbtscope'])) $conf .= "push \"dhcp-option NBS {$settings['dhcp_nbtscope']}\"\n";
|
||||
if ($settings['dhcp_nbtdisable']) $conf .= "push \"dhcp-option DISABLE-NBT\"\n";
|
||||
if ($settings['gwredir']) $conf .= "push \"redirect-gateway def1\"\n";
|
||||
if ($settings['keepalive']) $conf .= "keepalive 12 120\n";
|
||||
|
||||
if (!empty($settings['custom_options'])) {
|
||||
$options = explode(';', $settings['custom_options']);
|
||||
|
||||
@ -258,12 +258,6 @@
|
||||
<description>Redirect ALL traffic through the OpenVPN server.</description>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<fieldname>keepalive</fieldname>
|
||||
<fielddescr>Keep alive</fielddescr>
|
||||
<description>Sends bidirectional ICMP-like packets every 10 sec. to ensure hosts are up. Hosts are assumed to be down if no answer was received for 120 sec.</description>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<fieldname>custom_options</fieldname>
|
||||
<fielddescr>Custom options</fielddescr>
|
||||
|
||||
@ -149,12 +149,6 @@
|
||||
<description>Redirect ALL traffic through the OpenVPN server.</description>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<fieldname>keepalive</fieldname>
|
||||
<fielddescr>Keep alive</fielddescr>
|
||||
<description>Sends bidirectional ICMP-like packets every 10 sec. to ensure hosts are up. Hosts are assumed to be down if no answer was received for 120 sec.</description>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<fieldname>custom_options</fieldname>
|
||||
<fielddescr>Custom options</fielddescr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user