luci-app-openvpn: change Value to DynamicList for ciphers
authorPaul Donald <newtwen+github@gmail.com>
Wed, 17 Apr 2024 00:49:49 +0000 (02:49 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 17 Apr 2024 00:51:40 +0000 (02:51 +0200)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f6301561e709433b8602264fa00495c4aeb70ad3)

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") },
        } }
 }