home/wm: increase dig timeout

This commit is contained in:
Dmitriy Pleshevskiy 2023-07-17 23:02:20 +03:00
parent cf58eb8425
commit ce4380ecd0
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
1 changed files with 1 additions and 1 deletions

View File

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