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, 3 Jul 2019 05:45:00 +0000 (07:45 +0200)
commit1d4c4cbd20580dd211431ab58460a6eebd5e021e
treea3e7fb1878d089fb76488622041cd845ae372f1a
parent313444a79e9d1ced42223a9c92cb677b6e6e286e
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>
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/openvpn.init