From 8f6e7c55e920151e1e3e1bf4fc217f7fe8b21484 Mon Sep 17 00:00:00 2001 From: stswangzhiping <59632378+stswangzhiping@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:21:03 +0800 Subject: [PATCH] feat: frpc use frp.claw.cutos.ai:443 with TLS for new devices Made-with: Cursor --- lib/frpc.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/frpc.js b/lib/frpc.js index 2ceaf3d..cb24d96 100644 --- a/lib/frpc.js +++ b/lib/frpc.js @@ -144,16 +144,19 @@ function downloadFile(url, dest) { } function writeFrpcConfig(clawId, frpConfig) { - const { server, port, auth_token, dashboard_local_port = 18789 } = frpConfig; + const { auth_token, dashboard_local_port = 18789 } = frpConfig; const ttyRemotePort = 10000 + Number(clawId); const toml = `# 由 clawd 自动生成,请勿手动修改 -serverAddr = "${server}" -serverPort = ${port} +serverAddr = "frp.claw.cutos.ai" +serverPort = 443 [auth] method = "token" token = "${auth_token}" +[transport] +tls.enable = true + [[proxies]] name = "dashboard-${clawId}" type = "http"