From f1c9bcf51d79af250cd15718976f2a0751a929f7 Mon Sep 17 00:00:00 2001 From: anor Date: Wed, 15 Jul 2026 17:24:52 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20canary=20telegram-=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D1=80=D1=82=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20--noproxy=20(xr?= =?UTF-8?q?ay=20=D0=BD=D0=B5=20=D1=80=D0=BE=D1=83=D1=82=D0=B8=D1=82=20tele?= =?UTF-8?q?gram)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/agent_canary.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/agent_canary.sh b/scripts/agent_canary.sh index 1cac689..77e801d 100644 --- a/scripts/agent_canary.sh +++ b/scripts/agent_canary.sh @@ -74,7 +74,8 @@ send_tg() { # $1=text if [ -z "${ALERT_TG_BOT_TOKEN:-}" ] || [ -z "${ALERT_TG_CHAT_ID:-}" ]; then echo "$TS ALERT-UNSENT (TG не настроен) $1" >> "$LOG"; return 0 fi - if curl -s --max-time 10 "https://api.telegram.org/bot${ALERT_TG_BOT_TOKEN}/sendMessage" \ + # --noproxy: xray (HTTPS_PROXY) телегу НЕ роутит (даёт 000); слать напрямую. + if curl -s --noproxy "*" --max-time 10 "https://api.telegram.org/bot${ALERT_TG_BOT_TOKEN}/sendMessage" \ --data-urlencode "chat_id=${ALERT_TG_CHAT_ID}" \ --data-urlencode "text=$1" | grep -q '"ok":true'; then echo "$TS ALERT-SENT tg" >> "$LOG"