phobos-pull: таймаут wget 8 с — мёртвый туннель вешал pull навсегда

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c2d367ad527c3b14ba9b5ba421e74ae7a0cb7d33)
This commit is contained in:
Бобырев Андрей
2026-11-01 14:10:21 +03:00
parent 15011c2756
commit eefe3fc2af
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ fetch_config() {
if command -v curl >/dev/null; then
curl -k -s -m 8 -o "$TMP" "$url" 2>/dev/null && return 0
fi
wget --no-check-certificate -q -O "$TMP" "$url" 2>/dev/null || wget -q -O "$TMP" "$url" 2>/dev/null
wget -T 8 --no-check-certificate -q -O "$TMP" "$url" 2>/dev/null || wget -T 8 -q -O "$TMP" "$url" 2>/dev/null
}
# One fetch + compare + apply pass. Returns 0 always (best-effort).