feat: add share_key for Samba password, sync smbpasswd on startup

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
stswangzhiping
2026-05-04 14:17:28 +08:00
parent 4be305d0e2
commit f8789876f5
3 changed files with 47 additions and 1 deletions

View File

@@ -377,6 +377,7 @@ class ClawClient {
token: this._cfg.token ?? null,
version: CLAWD_VERSION,
ssh_secret_key: this._cfg.ssh_secret_key ?? null,
share_key: this._cfg.share_key ?? null,
headscale_joined: headscale.isInstalled() && headscale.isJoined(this._cfg.headscale_server || 'https://hs.claw.cutos.ai'),
local_ip: getLocalIps(),
local_networks: getLocalNetworks(),