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

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