summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2018-12-13 08:08:24 +0100
committerMartin Schiller <ms@dev.tdt.de>2018-12-13 08:08:24 +0100
commitab234df3df03422e66dd1b89de3cb49271fcfe99 (patch)
treec442bee789c2577ca94d106398e51e2fcf351997 /applications/luci-app-openvpn/luasrc
parentaa954d1c69c1f6b8046fbec82876f1e2c544185d (diff)
luci-app-openvpn: re-add options comp_lzo and comp_noadapt
* re-add config option comp_lzo according to openwrt/openwrt@3850b41 * re-add config option comp_noadapt. This has never been removed from openwrt Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua11
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua4
2 files changed, 14 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 25d1481f8..40201bace 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,
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua
index 3e9137bae..132c4d8f9 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua
@@ -39,6 +39,10 @@ local basicParams = {
"nobind",
0,
translate("Do not bind to local address and port") },
+ { ListValue,
+ "comp_lzo",
+ {"yes","no","adaptive"},
+ translate("Use fast LZO compression") },
{ Value,
"keepalive",
"10 60",