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

This commit is contained in:
Liang Ding 2022-10-25 11:53:46 +08:00
parent 2766ea6b97
commit 1ffdde034c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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()