home/wm: increase dig timeout
This commit is contained in:
parent
cf58eb8425
commit
ce4380ecd0
1 changed files with 1 additions and 1 deletions
|
@ -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-}"
|
||||
|
|
Loading…
Reference in a new issue