luci-app-openvpn: add possibility to set param "compress" without algorithm
authorMartin Schiller <[email protected]>
Mon, 30 Mar 2020 08:16:11 +0000 (10:16 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
commit4b07c727857c852a6342498880e8ec7a82b6a628
tree09a5f4e8bc8793129c15b58f72f893c7b6aa164f
parent81d6d3f812e4db1b6b1078e94ed39dda93094ab2
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 <[email protected]>
(cherry picked from commit f8efd2c347f23f515da996754b05efbabf10b00a)
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua