mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
OpenVPN export, add missing compression setting, for https://github.com/opnsense/core/issues/3174
This commit is contained in:
parent
9eebb2eb74
commit
81364dd3dc
@ -128,6 +128,10 @@ class PlainOpenVPN extends BaseExporter implements IExportProvider
|
||||
$conf[] = "auth-user-pass";
|
||||
}
|
||||
|
||||
if (!empty($this->config['compression'])) {
|
||||
$conf[] = "comp-lzo " . $this->config['compression'];
|
||||
}
|
||||
|
||||
if (!empty($this->config['plain_config'])) {
|
||||
foreach (preg_split('/\r\n|\r|\n/', $this->config['plain_config']) as $line) {
|
||||
if (!empty($line)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user