luci-app-openvpn: Updates proto and mssfix params
authorPhilippe Duveau <pduveau@users.noreply.github.com>
Sun, 15 May 2022 11:08:21 +0000 (13:08 +0200)
committerPaul Donald <newtwen@gmail.com>
Wed, 24 Jan 2024 00:43:16 +0000 (01:43 +0100)
- 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>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua

index 526815728365ed5d3a8ba4bf629290b27b07cb05..b69f86b8f5e05f71bfecb9339012413350627ecd 100644 (file)
@@ -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,