Revision 9446ee68
Added by Jim Pingle almost 9 years ago
src/etc/inc/openvpn.inc | ||
---|---|---|
100 | 100 |
global $openvpn_compression_modes; |
101 | 101 |
$openvpn_compression_modes = array( |
102 | 102 |
'' => gettext("No Preference"), |
103 |
'noadapt' => gettext("No Preference and Adaptive Compression Disabled"), |
|
103 | 104 |
'no' => gettext("Disabled - No Compression"), |
104 | 105 |
'adaptive' => gettext("Enabled with Adaptive Compression"), |
105 | 106 |
'yes' => gettext("Enabled without Adaptive Compression")); |
... | ... | |
1013 | 1014 |
} |
1014 | 1015 |
|
1015 | 1016 |
if (!empty($settings['compression'])) { |
1016 |
$conf .= "comp-lzo {$settings['compression']}\n"; |
|
1017 |
if ($settings['compression'] == "noadapt") { |
|
1018 |
$conf .= "comp-noadapt\n"; |
|
1019 |
} else { |
|
1020 |
$conf .= "comp-lzo {$settings['compression']}\n"; |
|
1021 |
} |
|
1017 | 1022 |
} |
1018 | 1023 |
|
1019 | 1024 |
if ($settings['passtos']) { |
Also available in: Unified diff
Add a selection for OpenVPN to have no compression preference + comp-noadapt, which is necessary in some client edge cases. Fixes #6739