diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-04-17 02:49:49 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-04-17 02:49:49 +0200 |
commit | f6301561e709433b8602264fa00495c4aeb70ad3 (patch) | |
tree | a1c580ae5ecb714eae50ddcba88d8c445f351954 /applications/luci-app-openvpn/luasrc/model/cbi | |
parent | 995d3a1801cf3b850e8c7c35937fbdd0526ff53e (diff) |
luci-app-openvpn: change Value to DynamicList for ciphers
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua index a7eefdf5fe..656aeedf9a 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua @@ -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") }, } } } |