luci-app-openvpn: change Value to DynamicList for ciphers
[project/luci.git] / applications / luci-app-openvpn / luasrc / model / cbi / openvpn-advanced.lua
index a7eefdf5fe5c42c4f486835e442c95f95e1fdd5c..656aeedf9aaf54cb61c507c5089976dab1a0d65d 100644 (file)
@@ -801,13 +801,21 @@ local knownParams = {
                        "ncp_disable",
                        0,
                        translate("This completely disables cipher negotiation") },
-               { Value,
+               { DynamicList,
                        "ncp_ciphers",
-                       "AES-256-GCM:AES-128-GCM",
+                       {
+                               "AES-256-GCM",
+                               "AES-128-GCM"
+                       },
                        translate("Restrict the allowed ciphers to be negotiated") },
-               { Value,
+               { DynamicList,
                        "data_ciphers",
-                       "CHACHA20-POLY1305:AES-256-GCM:AES-128-GCM:AES-256-CBC",  
+                       {
+                               "CHACHA20-POLY1305",
+                               "AES-256-GCM",
+                               "AES-128-GCM",
+                               "AES-256-CBC"
+                       },
                        translate("Restrict the allowed ciphers to be negotiated") },
        } }
 }