Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952

Liang Ding1ffdde034c44
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index bcf7f8580c..054406d8bc 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -274,6 +274,9 @@ func InitConf() {
if util.ContainerStd != util.Container {
Conf.System.FixedPort = true
}
+ if Conf.System.FixedPort {
+ util.ServerPort = "6806"
+ }
Conf.LocalIPs = util.GetLocalIPs()