Skip to content

Commit

Permalink
print connection logs before checking IP
Browse files Browse the repository at this point in the history
  • Loading branch information
duksis committed Feb 18, 2020
1 parent cbf78f7 commit ac7791b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ commands:
while [ -n "$(ip addr show tun0 2>&1 > /dev/null)" ]; do
sleep 0.1;
done
cat openvpn.log
wget -qO- http://checkip.amazonaws.com | tee final.ip
if [ "$(cat initial.ip)" == "$(cat final.ip)" ]
then
echo "This computer's apparent public IP address was not different after connecting"
echo "This may mean that your VPN is not configured correctly."
exit 1
fi
cat openvpn.log
disconnect:
description: "Disconnect from OpenVPN"
steps:
Expand Down

0 comments on commit ac7791b

Please sign in to comment.