From e6c6e66e4b528d7092e0c9911e13be893d8c06a7 Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Thu, 16 Apr 2026 05:51:04 +0000 Subject: [PATCH] =?UTF-8?q?feat(agent):=20[v3.5.2]=20=E5=89=A5=E9=99=A4?= =?UTF-8?q?=E6=94=B9=E5=90=8D=E5=90=8E=E7=9A=84=E5=86=97=E4=BD=99=20TG=20?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=8A=A5=E6=96=87=EF=BC=8C=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E9=9D=99=E9=BB=98=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E4=B8=8E?= =?UTF-8?q?=E5=BA=95=E5=B1=82=20HTTP=20=E5=9B=9E=E6=89=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/agent_daemon.sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/core/agent_daemon.sh b/core/agent_daemon.sh index d096ad6..65f7804 100755 --- a/core/agent_daemon.sh +++ b/core/agent_daemon.sh @@ -277,22 +277,7 @@ class AgentHandler(http.server.BaseHTTPRequestHandler): with open(config_path, 'w', encoding='utf-8') as f: f.writelines(lines) - # 4. 绕过 WAF:交由系统底层 curl 异步发包 - region = config_dict.get('REGION_CODE', 'UNKNOWN') - node_name = config_dict.get('NODE_NAME', 'UNKNOWN') - agent_ip = config_dict.get('PUBLIC_IP', '127.0.0.1') - agent_port = config_dict.get('AGENT_PORT', '9527') - chat_id = config_dict.get('CHAT_ID', '') - tg_url = config_dict.get('TG_API_URL', '') - - if tg_url and chat_id: - reg_msg = f"#REGISTER#|{region}|{node_name}|{agent_ip}|{agent_port}|{safe_alias}" - subprocess.Popen([ - 'curl', '-s', '-m', '10', '-X', 'POST', tg_url, - '-d', f'chat_id={chat_id}', - '-d', f'text={reg_msg}' - ]) - + # [v3.5.2 极致丝滑] 移除向 TG 推送冗余报文的逻辑,直接向 Master 回执成功状态即可 self.send_response(200) self.send_header("Content-type", "text/plain") self.end_headers()