triage: resolve review findings

This commit is contained in:
2026-05-16 15:15:17 +00:00
parent a3b268c823
commit 4d99154adc
4 changed files with 41 additions and 60 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ log "[INFO] 開始檢查:$CHECK_URL"
while true; do
printf '[%s] [INFO] GET %s ... ' "$(timestamp)" "$CHECK_URL"
status_code="$(curl -sS --max-time 60 -o /dev/null -w '%{http_code}' "$CHECK_URL" || true)"
status_code="$(curl -sS --max-time 60 --url "$CHECK_URL" -o /dev/null -w '%{http_code}' || true)"
if [ -z "$status_code" ]; then
status_code="000"
fi