An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
Liang Dingefb6a2801dca
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 054406d8bc..f652a94ecc 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -275,7 +275,7 @@ func InitConf() {Conf.System.FixedPort = true}if Conf.System.FixedPort {- util.ServerPort = "6806"+ util.ServerPort = util.FixedPort}Conf.LocalIPs = util.GetLocalIPs()diff --git a/kernel/util/working.go b/kernel/util/working.goindex 220eb16741..7fef00fd19 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -79,7 +79,7 @@ func Boot() {Resident, _ = strconv.ParseBool(*resident)ServerPort = *portif isRunningInDockerContainer() || "dev" == Mode {- ServerPort = "6806"+ ServerPort = FixedPort}ReadOnly, _ = strconv.ParseBool(*readOnly)AccessAuthCode = *accessAuthCode@@ -291,6 +291,8 @@ const (ContainerDocker = "docker" // Docker 容器端ContainerAndroid = "android" // Android 端ContainerIOS = "ios" // iOS 端++ FixedPort = "6806" // 固定端口)func initPathDir() {diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.goindex 82ae0c7890..0f98a2dc48 100644--- a/kernel/util/working_mobile.go+++ b/kernel/util/working_mobile.go@@ -61,7 +61,7 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, lThemesPath = filepath.Join(AppearancePath, "themes")IconsPath = filepath.Join(AppearancePath, "icons")Resident = true- ServerPort = "6806"+ ServerPort = FixedPortContainer = containerUserAgent = UserAgent + " " + Containerhttpclient.SetUserAgent(UserAgent)