Skip to content

Commit

Permalink
openvpn.sh undo
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Sep 18, 2017
1 parent 356dbd4 commit ad83816
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ vpn() { local server="$1" user="$2" pass="$3" port="${4:-1194}" i \
done
[[ $server =~ : ]] && echo "remote-random" >>$conf
echo "resolv-retry infinite" >>$conf
#echo "keepalive 10 30" >>$conf
echo "keepalive 10 30" >>$conf
echo "nobind" >>$conf
echo "persist-key" >>$conf
[[ "${CIPHER:-""}" ]] && echo "cipher $CIPHER" >>$conf
Expand All @@ -130,7 +130,6 @@ vpn() { local server="$1" user="$2" pass="$3" port="${4:-1194}" i \
echo "ca $cert" >>$conf
[[ $(wc -w <<< $pem) -eq 1 ]] && echo "crl-verify $pem" >>$conf
echo "redirect-gateway def1" >>$conf
echo "disable-occ" >>$conf

echo "$user" >$auth
echo "$pass" >>$auth
Expand Down

0 comments on commit ad83816

Please sign in to comment.