From cc641708aa34cb074e5639e0484e8f19af075927 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Thu, 17 Nov 2016 14:49:55 +1100 Subject: [PATCH] fix conn time-out with dig --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index bc89200f..5940409e 100755 --- a/neofetch +++ b/neofetch @@ -1700,6 +1700,7 @@ get_local_ip() { get_public_ip() { if type -p dig >/dev/null; then public_ip="$(dig +time=1 +tries=1 +short myip.opendns.com @resolver1.opendns.com)" + [[ "$public_ip" =~ ^\; ]] && unset public_ip fi if [[ -z "$public_ip" ]] && type -p curl >/dev/null; then