fix(deploy): 调整 GeoIP 下载超时
CI / Frontend (typecheck + lint + build) (push) Successful in 7m54s
CI / Backend (go vet + test) (push) Failing after 33m0s

This commit is contained in:
yml2213
2026-11-06 18:24:56 +08:00
parent 239d805ea3
commit 6fad96d3d0
+1 -1
View File
@@ -127,7 +127,7 @@ ensure_geoip() {
for db_url in "${urls[@]}"; do
log "下载 GeoIP 城市库: $db_url"
rm -f "$tmp"
if curl -fL --retry 2 --connect-timeout 15 --max-time 180 -o "$tmp" "$db_url" \
if curl -fL --retry 2 --connect-timeout 15 --max-time 900 -o "$tmp" "$db_url" \
&& [[ "$(wc -c < "$tmp" | tr -d ' ')" -gt 1000000 ]] \
&& tail -c 131072 "$tmp" | grep -aq 'MaxMind.com'; then
mv "$tmp" "$db_file"