🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
efb6a2801d
commit
13602b8aed
1 changed files with 3 additions and 3 deletions
|
@ -78,15 +78,15 @@ func Boot() {
|
|||
Mode = *mode
|
||||
Resident, _ = strconv.ParseBool(*resident)
|
||||
ServerPort = *port
|
||||
if isRunningInDockerContainer() || "dev" == Mode {
|
||||
ServerPort = FixedPort
|
||||
}
|
||||
ReadOnly, _ = strconv.ParseBool(*readOnly)
|
||||
AccessAuthCode = *accessAuthCode
|
||||
Container = ContainerStd
|
||||
if isRunningInDockerContainer() {
|
||||
Container = ContainerDocker
|
||||
}
|
||||
if ContainerStd != Container || "dev" == Mode {
|
||||
ServerPort = FixedPort
|
||||
}
|
||||
|
||||
msStoreFilePath := filepath.Join(WorkingDir, "ms-store")
|
||||
ISMicrosoftStore = gulu.File.IsExist(msStoreFilePath)
|
||||
|
|
Loading…
Add table
Reference in a new issue