summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-openvpn')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua18
-rw-r--r--applications/luci-app-openvpn/po/es/openvpn.po6
2 files changed, 17 insertions, 7 deletions
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 86a76d5c8d..54f082a1fa 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua
@@ -47,10 +47,6 @@ local basicParams = {
"keepalive",
"10 60",
translate("Helper directive to simplify the expression of --ping and --ping-restart in server mode configurations") },
- { ListValue,
- "proto",
- { "udp", "tcp-client", "tcp-server" },
- translate("Use protocol") },
{ Flag,
"client",
0,
@@ -93,6 +89,20 @@ local basicParams = {
translate("Local private key") },
}
+local has_ipv6 = fs.access("/proc/net/ipv6_route")
+if has_ipv6 then
+ table.insert( basicParams, { ListValue,
+ "proto",
+ { "udp", "tcp-client", "tcp-server", "udp6", "tcp6-client", "tcp6-server" },
+ translate("Use protocol")
+ })
+else
+ table.insert( basicParams, { ListValue,
+ "proto",
+ { "udp", "tcp-client", "tcp-server" },
+ translate("Use protocol")
+ })
+end
local m = Map("openvpn")
m.redirect = luci.dispatcher.build_url("admin", "vpn", "openvpn")
diff --git a/applications/luci-app-openvpn/po/es/openvpn.po b/applications/luci-app-openvpn/po/es/openvpn.po
index fb625987eb..49cfd7045e 100644
--- a/applications/luci-app-openvpn/po/es/openvpn.po
+++ b/applications/luci-app-openvpn/po/es/openvpn.po
@@ -3,14 +3,14 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-10 03:41+0200\n"
-"PO-Revision-Date: 2019-03-02 14:45-0300\n"
+"PO-Revision-Date: 2019-10-09 12:29-0300\n"
"Last-Translator: José Vicente <josevteg@gmail.com>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 2.2.1\n"
+"X-Generator: Poedit 2.2.4\n"
"Language-Team: \n"
#: applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua:822
@@ -723,7 +723,7 @@ msgstr "Número de puerto TCP/UDP para remoto (default=1194)"
#: applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua:710
msgid "TLS 1.3 or newer cipher"
-msgstr ""
+msgstr "TLS 1.3 o cifrado más reciente"
#: applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua:702
msgid "TLS cipher"