summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2020-03-30 10:16:11 +0200
committerMartin Schiller <ms@dev.tdt.de>2022-11-03 09:47:22 +0100
commitf8efd2c347f23f515da996754b05efbabf10b00a (patch)
tree63ae2d872a8b3dd5fd2b4b9c9bb35ad3a578d239
parente7afd0d327bb35c502ca41a3c5e3ea098898fbd7 (diff)
luci-app-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>
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
index c8a83d21f7..03ce38e9d2 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
@@ -161,7 +161,7 @@ local knownParams = {
translate("Policy level over usage of external programs and scripts") },
{ ListValue,
"compress",
- { "lzo", "lz4", "stub-v2"},
+ { "frames_only", "lzo", "lz4", "stub-v2"},
translate("Security recommendation: It is recommended to not enable compression and set this parameter to `stub-v2`") },
} },