mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
VPN: OpenVPN: Servers [legacy] - disable DCO, only supported for new instances (and prevents server startup for tun devices).
This commit is contained in:
parent
c95f42b84d
commit
89135cdc7b
@ -530,6 +530,10 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
|
||||
}
|
||||
|
||||
$conf .= "dev-type {$settings['dev_mode']}\n";
|
||||
if ($settings['dev_mode'] == 'tun') {
|
||||
/* legacy does not support DCO */
|
||||
$conf .= "disable-dco\n";
|
||||
}
|
||||
$conf .= "dev-node /dev/{$devnode}\n";
|
||||
$conf .= "writepid /var/run/openvpn_{$mode_id}.pid\n";
|
||||
$conf .= "script-security 3\n";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user