sync @ 3f3e69b

This commit is contained in:
2026-10-12 21:53:26 +07:00
parent 5661a9f299
commit 50a9b415c3
3 changed files with 213 additions and 1 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ skip() { echo -e " ${YELLOW}[SKIP]${NC} $1"; SKIP_N=$((SKIP_N + 1)); }
# Kode HTTP untuk <url> (000 = koneksi gagal/timeout). Dipakai agar pesan FAIL
# menampilkan PENYEBAB (404/401/500/000), bukan hanya "tidak merespon".
http_code() { curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$1" 2>/dev/null || echo 000; }
http_code() { local c; c="$(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$1" 2>/dev/null)"; printf '%s' "${c:-000}"; }
code_hint() {
case "$1" in
000) echo "tidak terjangkau (koneksi/DNS/timeout) — cek port, alamat, jaringan";;