From 45312585d1a3ed04cfe33047f31994dc846a831c Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 17 Apr 2026 09:33:31 +0800 Subject: [PATCH] Update mermaids.sh --- mermaids.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/mermaids.sh b/mermaids.sh index 380a333..a6cf843 100644 --- a/mermaids.sh +++ b/mermaids.sh @@ -135,25 +135,6 @@ die() { echo -e "${RED}[$(date +%H:%M:%S)]${NC} $1"; exit 1; } PORT="${1:-80}" # === Now run operations === -# === BYPASS DNS: Use Debian CDN IP directly === -log "Bypassing DNS — using Fastly CDN IPs directly..." - -# Hardcode Debian repo IPs (Fastly) -cat > /etc/apt/sources.list <<'EOF' -deb http://146.75.22.132/debian bookworm main non-free non-free-firmware -deb http://146.75.22.132/debian-security bookworm-security main non-free non-free-firmware -deb http://146.75.22.132/debian bookworm-updates main non-free non-free-firmware -EOF - -# Skip resolv.conf entirely — no DNS queries needed -log "Installing dependencies (no DNS required)..." -apt-get update -o Acquire::Retries=5 || { - warn "Failed with primary IP — trying fallback..." - # Fallback to secondary Fastly node - sed -i 's|146.75.22.132|151.101.2.132|g' /etc/apt/sources.list - apt-get update -o Acquire::Retries=5 || die "apt-get update failed after all retries" -} - log "Installing dependencies..." apt-get install -y -qq \ wget \