From ce4380ecd06be1bf9467b38d4f9f51efa801443c Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 17 Jul 2023 23:02:20 +0300 Subject: [PATCH] home/wm: increase dig timeout --- home/modules/window_manager/scripts/external_ip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/modules/window_manager/scripts/external_ip.sh b/home/modules/window_manager/scripts/external_ip.sh index 68257cb..0b22bc6 100755 --- a/home/modules/window_manager/scripts/external_ip.sh +++ b/home/modules/window_manager/scripts/external_ip.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -res=$(dig +timeout=1 +short myip.opendns.com @resolver1.opendns.com 2>/dev/null) +res=$(dig +timeout=3 +short myip.opendns.com @resolver1.opendns.com 2>/dev/null) if [ -z "$res+x" ]; then text="NO CONN" echo "%{F@error@}${text}%{F-}"