summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-12-13 08:26:44 +0100
committerGitHub <noreply@github.com>2018-12-13 08:26:44 +0100
commit3094c5dbb84eb70de5d3141f5c441409b7607e86 (patch)
treec442bee789c2577ca94d106398e51e2fcf351997 /applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
parentaa954d1c69c1f6b8046fbec82876f1e2c544185d (diff)
parentab234df3df03422e66dd1b89de3cb49271fcfe99 (diff)
Merge pull request #2372 from TDT-AG/pr/20181213-openvpn-comp-lzo
luci-app-openvpn: re-add options comp_lzo and comp_noadapt
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua11
1 files changed, 10 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 25d1481f8a..40201baceb 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
@@ -250,6 +250,15 @@ local knownParams = {
"mtu_test",
0,
translate("Empirically measure MTU") },
+ { ListValue,
+ "comp_lzo",
+ { "yes", "no", "adaptive" },
+ translate("Use fast LZO compression") },
+ { Flag,
+ "comp_noadapt",
+ 0,
+ translate("Don't use adaptive lzo compression"),
+ { comp_lzo=1 } },
{ Value,
"link_mtu",
1500,
@@ -368,7 +377,7 @@ local knownParams = {
{ client="0" }, { client="" } },
{ DynamicList,
"push",
- { "redirect-gateway" },
+ { "redirect-gateway", "comp-lzo" },
translate("Push options to peer"),
{ client="0" }, { client="" } },
{ Flag,