luci-app-openvpn: use DynamicList for tls_ciphersuites 2962/head
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 2 Aug 2019 13:32:04 +0000 (15:32 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 2 Aug 2019 13:49:00 +0000 (15:49 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua

index f6a6849a5e887abc2edb92d80e9ef886a7222162..18b106c32ed231e2a81d2eae388024f67d12b72d 100644 (file)
@@ -700,9 +700,13 @@ local knownParams = {
                                "EXP-RC4-MD5"
                        },
                        translate("TLS cipher") },
-               { Value,
+               { DynamicList,
                        "tls_ciphersuites",
-                       "TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256",
+                       {
+                               "TLS_AES_256_GCM_SHA384",
+                               "TLS_AES_128_GCM_SHA256",
+                               "TLS_CHACHA20_POLY1305_SHA256"
+                       },
                        translate("TLS 1.3 or newer cipher") },
                { Value,
                        "tls_timeout",