From 1374421c167c5b5322c6fdae0bec938862a31075 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 2 Sep 2019 11:32:28 -0400 Subject: [PATCH] Fixes #42 --- portforward.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portforward.sh b/portforward.sh index c1a40efa..64125aea 100644 --- a/portforward.sh +++ b/portforward.sh @@ -26,7 +26,7 @@ if [ ! -d "${port_status_folder}" ]; fi echo "$port" > "${PORT_FORWARDING_STATUS_FILE}" printf " * Written forwarded port to ${PORT_FORWARDING_STATUS_FILE}\n" -ip=`wget -qO- https://diagnostic.opendns.com/myip` +ip=`wget -qO- https://duckduckgo.com/?q=ip | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"` exitOnError $? "Unable to read remote VPN IP" printf " * Forwarded port is $port on remote VPN IP $ip\n" printf " * Detecting target VPN interface..."