aboutsummaryrefslogtreecommitdiff
path: root/net/openvpn/files
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2020-01-14 15:20:14 +0100
committerMartin Schiller <ms@dev.tdt.de>2022-10-31 14:22:17 +0100
commit5ce5220eb23ffdfcce74541f07cff4fb3a3ade08 (patch)
treeec022475fa64aa9109dcbdfc73f49ac130afc7ed /net/openvpn/files
parent2d7ef1878f6a1376b0d1f6480b12124edc788a3c (diff)
openvpn: add possibility to set param "compress" without algorithm
In some situations you need to set the compress param without an algorithm. Compression will be turned off, but the packet framing for compression will still be enabled, allowing a different setting to be pushed later. As it is not possible to have options with optional values at the moment, I've introduced a pseudo value "frames_only" which will be removed in the init script. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'net/openvpn/files')
-rw-r--r--net/openvpn/files/openvpn.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/openvpn/files/openvpn.init b/net/openvpn/files/openvpn.init
index f7dc006ce..380b42349 100644
--- a/net/openvpn/files/openvpn.init
+++ b/net/openvpn/files/openvpn.init
@@ -42,6 +42,7 @@ append_params() {
config_get v "$s" "$p"
IFS="$LIST_SEP"
for v in $v; do
+ [ "$v" = "frames_only" ] && [ "$p" = "compress" ] && unset v && append_param "$s" "$p" && echo >> "/var/etc/openvpn-$s.conf"
[ -n "$v" ] && [ "$p" != "push" ] && append_param "$s" "$p" && echo " $v" >> "/var/etc/openvpn-$s.conf"
[ -n "$v" ] && [ "$p" = "push" ] && append_param "$s" "$p" && echo " \"$v\"" >> "/var/etc/openvpn-$s.conf"
done