fix(deploy): 调整 GeoIP 下载超时
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user