Require cloud-provided CutOS host rewrite

This commit is contained in:
yankun
2026-08-02 18:36:35 +08:00
parent 39d16d168c
commit 9ccdd73955
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -458,11 +458,7 @@ class ClawClient {
this._applyStatus(msg); this._applyStatus(msg);
if (msg.frp && msg.frp.server && msg.frp.auth_token) { if (msg.frp && msg.frp.server && msg.frp.auth_token) {
const frpConfig = { ...msg.frp }; this._frpc.start(msg.claw_id, msg.frp, this._cfg.ssh_secret_key ?? null, true).catch(e => {
if (!this._isOpenClaw() && !frpConfig.dashboard_host_header) {
frpConfig.dashboard_host_header = '127.0.0.1';
}
this._frpc.start(msg.claw_id, frpConfig, this._cfg.ssh_secret_key ?? null, true).catch(e => {
log.error('frpc', '启动失败:', e.message); log.error('frpc', '启动失败:', e.message);
}); });
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "clawd", "name": "clawd",
"version": "1.5.10", "version": "1.6.0",
"description": "Claw Box daemon - connects local Linux box to claw.cutos.ai via WebSocket", "description": "Claw Box daemon - connects local Linux box to claw.cutos.ai via WebSocket",
"main": "lib/client.js", "main": "lib/client.js",
"bin": { "bin": {