Skip to content

Commit

Permalink
openvpn.sh only set cipher and auth if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Jun 21, 2017
1 parent dbf0d99 commit 764feb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ vpn() { local server="$1" user="$2" pass="$3" port="${4:-1194}" i \
echo "keepalive 10 30" >>$conf
echo "nobind" >>$conf
echo "persist-key" >>$conf
echo "cipher aes-256-cbc" >>$conf
echo "auth sha256" >>$conf
[[ "$CIPHER" ]] && echo "cipher $CIPHER" >>$conf
[[ "$AUTH" ]] && echo "auth $AUTH" >>$conf
echo "tls-client" >>$conf
echo "remote-cert-tls server" >>$conf
echo "auth-user-pass $auth" >>$conf
Expand Down

0 comments on commit 764feb8

Please sign in to comment.