From 13602b8aedd99d61d4764768380a8a14093e7b9c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 12:03:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/working.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/util/working.go b/kernel/util/working.go index 7fef00fd1..ee8f97437 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -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)