openvpn: quote parameters to --push in openvpn config file
authorMagnus Kroken <mkroken@gmail.com>
Sat, 10 Dec 2016 11:02:03 +0000 (12:02 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 12 Dec 2016 09:22:19 +0000 (10:22 +0100)
commita456dd96e7d2131cac1e7c2cca5e124d43d50f13
tree3bac779234d7de3fb3a5fbc6d99aaafe954aa996
parent4b8c69258e5ff10178638f0503e59175e452a3df
openvpn: quote parameters to --push in openvpn config file

OpenVPN requires arguments to --push to be enclosed in double quotes.
One set of quotes is stripped when the UCI config is parsed.
Change append_params() of openvpn.init to enclose push parameters in
double quotes.

Unquoted push parameters do not cause errors in OpenVPN 2.3,
but OpenVPN 2.4 fails to start with unquoted push parameters.

Fixes: FS#290.
Signed-off-by: Magnus Kroken <mkroken@gmail.com>
package/network/services/openvpn/files/openvpn.init