mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
1ffdde034c
commit
efb6a2801d
3 changed files with 5 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ func Boot() {
|
|||
Resident, _ = strconv.ParseBool(*resident)
|
||||
ServerPort = *port
|
||||
if isRunningInDockerContainer() || "dev" == Mode {
|
||||
ServerPort = "6806"
|
||||
ServerPort = FixedPort
|
||||
}
|
||||
ReadOnly, _ = strconv.ParseBool(*readOnly)
|
||||
AccessAuthCode = *accessAuthCode
|
||||
|
|
@ -291,6 +291,8 @@ const (
|
|||
ContainerDocker = "docker" // Docker 容器端
|
||||
ContainerAndroid = "android" // Android 端
|
||||
ContainerIOS = "ios" // iOS 端
|
||||
|
||||
FixedPort = "6806" // 固定端口
|
||||
)
|
||||
|
||||
func initPathDir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue