From f37d613a0c17ef7b0b23e6ff44d924ce602a3150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Fri, 15 May 2026 14:09:37 +0800 Subject: [PATCH] Add files via upload --- cmd/server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/server/main.go b/cmd/server/main.go index dd24460d..8b122a7f 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -58,6 +58,9 @@ func main() { if scheme == "https" && cfg.Server.TLSAutoSelfSign { fmt.Println(" (内存自签证书:浏览器首次需确认「继续访问」)") } + if scheme == "https" && config.ServerHTTPRedirectEnabled(&cfg.Server) { + fmt.Printf(" (http://127.0.0.1:%d/ 将自动跳转到 HTTPS)\n", port) + } fmt.Println() // MCP 启用且 auth_header_value 为空时,自动生成随机密钥并写回配置