From e4872a78f559167f690d236f66d710c7c1e1f079 Mon Sep 17 00:00:00 2001 From: hejk Date: Tue, 31 Mar 2026 11:31:43 +0800 Subject: [PATCH] feat(http): change default API host to 0.0.0.0 for external access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 httpApiHost 默认值从 127.0.0.1 到 0.0.0.0 - 允许 HTTP API 服务接受外网访问 - 用户需要配置 httpApiToken 以确保安全 Co-Authored-By: Claude Opus 4.6 --- electron/services/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/services/config.ts b/electron/services/config.ts index 5fdd609..3a1c17d 100644 --- a/electron/services/config.ts +++ b/electron/services/config.ts @@ -126,7 +126,7 @@ export class ConfigService { httpApiToken: '', httpApiEnabled: false, httpApiPort: 5031, - httpApiHost: '127.0.0.1', + httpApiHost: '0.0.0.0', messagePushEnabled: false, windowCloseBehavior: 'ask', quoteLayout: 'quote-top',