mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
2766ea6b97
commit
1ffdde034c
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ func InitConf() {
|
||||||
if util.ContainerStd != util.Container {
|
if util.ContainerStd != util.Container {
|
||||||
Conf.System.FixedPort = true
|
Conf.System.FixedPort = true
|
||||||
}
|
}
|
||||||
|
if Conf.System.FixedPort {
|
||||||
|
util.ServerPort = "6806"
|
||||||
|
}
|
||||||
|
|
||||||
Conf.LocalIPs = util.GetLocalIPs()
|
Conf.LocalIPs = util.GetLocalIPs()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue