Skip to content

Commit 55d5ea8

Browse files
Improve connection timed out detection
1 parent 06d59b1 commit 55d5ea8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chkdm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ function query() {
111111
fi
112112
elif [ ";; connection timed out; no servers could be reached" = "$result" ]; then
113113
return 4
114+
elif echo "$result" | grep -E ";; communications error to $dns#[1-9]+: timed out"; then
115+
return 4
114116
elif echo "$result" | grep -E ";; communications error to $dns#[0-9]+: connection refused"; then
115117
return 5
116118
elif [ "filterDetect" != "$filterDetect" ]; then

0 commit comments

Comments
 (0)