Push options need to be quoted.

Move the implementation to process_push_config.
This commit is contained in:
Alexander Chepurko 2017-05-10 19:33:30 +03:00 committed by Kyle Manna
parent 909744dd78
commit 3ee5479d78

View File

@ -121,7 +121,7 @@ process_push_config() {
local ovpn_push_config=''
ovpn_push_config="$1"
echo "Processing PUSH Config: '${ovpn_push_config}'"
[[ -n "$ovpn_push_config" ]] && echo "push $ovpn_push_config" >> "$TMP_PUSH_CONFIGFILE"
[[ -n "$ovpn_push_config" ]] && echo "push \"$ovpn_push_config\"" >> "$TMP_PUSH_CONFIGFILE"
}
process_extra_config() {