Skip to content

Commit 39996ed

Browse files
committed
Fix Unbound Variables
1 parent 1807bc6 commit 39996ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/ovpn_genconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ EOF
293293
[ -n "$OVPN_CIPHER" ] && echo "cipher $OVPN_CIPHER" >> "$conf"
294294
[ -n "$OVPN_AUTH" ] && echo "auth $OVPN_AUTH" >> "$conf"
295295

296-
[ -n "$OVPN_CLIENT_TO_CLIENT" ] && echo "client-to-client" >> "$conf"
297-
[ -n "$OVPN_COMP_LZO" ] && echo "comp-lzo" >> "$conf"
296+
[ -n "${OVPN_CLIENT_TO_CLIENT:-}" ] && echo "client-to-client" >> "$conf"
297+
[ -n "${OVPN_COMP_LZO:-}" ] && echo "comp-lzo" >> "$conf"
298298

299299
[ -n "${OVPN_FRAGMENT:-}" ] && echo "fragment $OVPN_FRAGMENT" >> "$conf"
300300

0 commit comments

Comments
 (0)