diff --git a/app/kernel/fetch-desktop-bin.sh b/app/kernel/fetch-desktop-bin.sh index d1f731b..3a35a87 100644 --- a/app/kernel/fetch-desktop-bin.sh +++ b/app/kernel/fetch-desktop-bin.sh @@ -140,7 +140,7 @@ fi # ── 下载二进制压缩包 ────────────────────────────────────────────────────────── printf '==> 下载 %s…\n' "${ARCHIVE_FILE}" -curl -fSL --retry 3 --retry-delay 2 \ +curl -fSL --retry 8 --retry-delay 5 --retry-connrefused --retry-all-errors --connect-timeout 20 \ -o "${ARCHIVE_CACHE}" \ "${ARCHIVE_URL}" @@ -197,7 +197,7 @@ if [[ "${TARGET_OS}" == "windows" ]]; then if [[ "${FORCE}" == false && -f "${WINTUN_OUT}" ]]; then printf '✓ wintun.dll 已存在,跳过(传 --force 重新下载)\n' else - curl -fSL --retry 3 --retry-delay 2 \ + curl -fSL --retry 8 --retry-delay 5 --retry-connrefused --retry-all-errors --connect-timeout 20 \ -o "${WINTUN_ZIP_CACHE}" \ "${WINTUN_URL}"