From 39d16d168c5059ff696f63a6479a6717e27378a6 Mon Sep 17 00:00:00 2001 From: yankun Date: Sun, 2 Aug 2026 18:24:08 +0800 Subject: [PATCH] Default CutOS console host rewrite --- lib/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 5930e94..7d90545 100644 --- a/lib/client.js +++ b/lib/client.js @@ -458,7 +458,11 @@ class ClawClient { this._applyStatus(msg); if (msg.frp && msg.frp.server && msg.frp.auth_token) { - this._frpc.start(msg.claw_id, msg.frp, this._cfg.ssh_secret_key ?? null, true).catch(e => { + const frpConfig = { ...msg.frp }; + 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); }); }