openvpn: fix handling of list options
authorMatt Merhar <mattmerhar@protonmail.com>
Sat, 22 Jun 2019 07:05:14 +0000 (03:05 -0400)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Jul 2019 18:11:41 +0000 (20:11 +0200)
commitc0a715f75e21821263e07d9ee8cc9c14c6b5dd66
tree02a08400686bb4537ab27cd0e26ac71c9ad72777
parent0254087e925dabae7e06a281a5c16489052088f4
openvpn: fix handling of list options

This addresses an issue where the list option specified in
/etc/config/openvpn i.e. 'tls_cipher' would instead show up in the
generated openvpn-<name>.conf as 'ncp-ciphers'. For context,
'ncp_ciphers' appears after 'tls_cipher' in OPENVPN_LIST from
openvpn.options.

Also, the ordering of the options in the UCI config file is now
preserved when generating the OpenVPN config. The two currently
supported list options deal with cipher preferences.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
(cherry picked from commit 1d4c4cbd20580dd211431ab58460a6eebd5e021e)
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/openvpn.init