diff --git a/compiled.sh b/compiled.sh index 5955c06..c379319 100755 --- a/compiled.sh +++ b/compiled.sh @@ -1170,7 +1170,7 @@ function TestHostname { OPEN_PORT_53=$(echo "quit" | timeout 1 telnet 8.8.8.8 53 2> /dev/null | grep "Escape character is") if [[ "$OPEN_PORT_53" != "" ]] && command -v dig >/dev/null 2>&1 then - EXTERNAL_IP=$(dig +time=1 +tries=1 +retry=1 +short myip.opendns.com @resolver1.opendns.com | tail -n1) + EXTERNAL_IP=$(dig -4 +short myip.opendns.com @resolver1.opendns.com) IP=$(dig @8.8.8.8 +short $HOSTNAME | tail -n1) else