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:50 +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 f8af3a7a312a52e50099a050d86357490748d29f..9e961aef9a53d934b23c2664a7dcb3b4ed54360a 100644 (file)
@@ -797,13 +797,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") },
        } }
 }