From 92f34925cc21e5b9f871c4a9d1a8569268460693 Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Fri, 5 Oct 2018 19:51:41 +0300 Subject: [PATCH] ping target is now more robust --- reverse-tunnel-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse-tunnel-setup.md b/reverse-tunnel-setup.md index 6e57ebb..215aaf5 100644 --- a/reverse-tunnel-setup.md +++ b/reverse-tunnel-setup.md @@ -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"