summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc/model/cbi
diff options
context:
space:
mode:
authorPhilippe Duveau <pduveau@users.noreply.github.com>2022-05-15 13:08:21 +0200
committerPaul Donald <newtwen@gmail.com>2024-01-24 01:43:16 +0100
commit9889d3f73524c5ef814ab37e5c9fac81f213046d (patch)
tree818a83f62df968ed57a293596edccfeb38dbc9b1 /applications/luci-app-openvpn/luasrc/model/cbi
parentb0c135423370548e8198609309e64bf48fe1717b (diff)
luci-app-openvpn: Updates proto and mssfix params
- proto parameter is available in client or server mode in the network section. - mssfix default value is set to openvpn.org default value Signed-off-by: Philippe Duveau <philippe.duveau@free.fr>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/model/cbi')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua11
1 files changed, 5 insertions, 6 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 5268157283..b69f86b8f5 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
@@ -187,6 +187,10 @@ local knownParams = {
"rport",
1194,
translate("TCP/UDP port # for remote (default=1194)") },
+ { ListValue,
+ "proto",
+ { "udp", "tcp-client", "tcp-server" },
+ translate("Use protocol") },
{ Flag,
"float",
0,
@@ -283,7 +287,7 @@ local knownParams = {
{ proto="udp" } },
{ Value,
"mssfix",
- 1500,
+ 1450,
translate("Set upper bound on TCP MSS"),
{ proto="udp" } },
{ Value,
@@ -508,11 +512,6 @@ local knownParams = {
0,
translate("Randomly choose remote server"),
{ client="1" } },
- { ListValue,
- "proto",
- { "udp", "tcp-client", "tcp-server" },
- translate("Use protocol"),
- { client="1" } },
{ Value,
"connect_retry",
5,