Skip to content

Commit 3ee5479

Browse files
chepurkokylemanna
authored andcommitted
Push options need to be quoted.
Move the implementation to process_push_config.
1 parent 909744d commit 3ee5479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ovpn_genconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ process_push_config() {
121121
local ovpn_push_config=''
122122
ovpn_push_config="$1"
123123
echo "Processing PUSH Config: '${ovpn_push_config}'"
124-
[[ -n "$ovpn_push_config" ]] && echo "push $ovpn_push_config" >> "$TMP_PUSH_CONFIGFILE"
124+
[[ -n "$ovpn_push_config" ]] && echo "push \"$ovpn_push_config\"" >> "$TMP_PUSH_CONFIGFILE"
125125
}
126126

127127
process_extra_config() {

0 commit comments

Comments
 (0)