mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
OpenVPN export, defaults dev_mode to tun, for https://github.com/opnsense/core/issues/2787
This commit is contained in:
parent
98247373d0
commit
bb4bd9e87f
@ -90,9 +90,8 @@ class PlainOpenVPN extends BaseExporter implements IExportProvider
|
||||
protected function openvpnConfParts()
|
||||
{
|
||||
$conf = array();
|
||||
if (isset($this->config['dev_mode'])) {
|
||||
$conf[] = "dev {$this->config['dev_mode']}";
|
||||
}
|
||||
$conf[] = "dev " . (!empty($this->config['dev_mode']) ? $this->config['dev_mode'] : 'tun');
|
||||
|
||||
if (!empty($this->config['tunnel_networkv6'])) {
|
||||
$conf[] .= "tun-ipv6";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user