Default CutOS console host rewrite
This commit is contained in:
+5
-1
@@ -458,7 +458,11 @@ 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) {
|
||||||
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);
|
log.error('frpc', '启动失败:', e.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user