Skip to content

Commit 8674f98

Browse files
committed
fix: be more clear about client-to-client option
kylemanna#414
1 parent 2c43248 commit 8674f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ovpn_genconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ fi
350350
[ -n "$OVPN_CIPHER" ] && echo "cipher $OVPN_CIPHER" >> "$conf"
351351
[ -n "$OVPN_AUTH" ] && echo "auth $OVPN_AUTH" >> "$conf"
352352

353-
[ -n "${OVPN_CLIENT_TO_CLIENT:-}" ] && echo "client-to-client" >> "$conf"
353+
[ "$OVPN_CLIENT_TO_CLIENT" == "1" ] && echo "client-to-client" >>"$conf"
354354
[ "$OVPN_COMP_LZO" == "1" ] && echo "comp-lzo" >> "$conf"
355355
[ "$OVPN_COMP_LZO" == "0" ] && echo "comp-lzo no" >> "$conf"
356356

0 commit comments

Comments
 (0)