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 Ding2ffc8f9a4089
diff --git a/kernel/util/working.go b/kernel/util/working.go
index ab71d77557..9f188a9b89 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -78,7 +78,7 @@ func Boot() {
Mode = *mode
Resident = *resident
ServerPort = *port
- if isRunningInDockerContainer() {
+ if isRunningInDockerContainer() || "dev" == Mode {
ServerPort = "6806"
}
ReadOnly = *readOnly