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
|
#!/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
|
if [ -z "$res+x" ]; then
|
||||||
text="NO CONN"
|
text="NO CONN"
|
||||||
echo "%{F@error@}${text}%{F-}"
|
echo "%{F@error@}${text}%{F-}"
|
||||||
|
|
Loading…
Reference in a new issue