Skip to content

Commit

Permalink
openvpn: add possibility to set param "compress" without algorithm
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 5ce5220)
  • Loading branch information
sch-m authored and BKPepe committed Apr 27, 2024
1 parent bfb0d95 commit 09a85c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvpn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openvpn

PKG_VERSION:=2.5.7
PKG_RELEASE:=3
PKG_RELEASE:=4

PKG_SOURCE_URL:=\
https://build.openvpn.net/downloads/releases/ \
Expand Down
1 change: 1 addition & 0 deletions net/openvpn/files/openvpn.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09a85c7

Please sign in to comment.