This commit is contained in:
Quentin McGaw
2019-09-02 11:32:28 -04:00
parent d35437bd73
commit 1374421c16

View File

@@ -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..."