Skip to content

Commit

Permalink
ping target is now more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
ceremcem committed Oct 5, 2018
1 parent 588b1db commit 92f3492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reverse-tunnel-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ LINK_UP_USER="myuser"
LOCAL_SSHD_PORT=22 # see README.md#run-dropbear-on-additional-ports

check_internet(){
if ping -c 1 ${LINK_UP_SERVER} > /dev/null 2>&1; then
if ping -c 1 example.com > /dev/null 2>&1; then
echo "online"
else
echo "offline"
Expand Down

0 comments on commit 92f3492

Please sign in to comment.