mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve AccessAuthCode checking https://ld246.com/article/1738206227405
This commit is contained in:
parent
54fc5dd5a2
commit
7612415527
2 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,8 @@ func Boot() {
|
|||
ServerPort = *port
|
||||
ReadOnly, _ = strconv.ParseBool(*readOnly)
|
||||
AccessAuthCode = *accessAuthCode
|
||||
AccessAuthCode = strings.TrimSpace(AccessAuthCode)
|
||||
AccessAuthCode = RemoveInvalid(AccessAuthCode)
|
||||
Container = ContainerStd
|
||||
if RunInContainer {
|
||||
Container = ContainerDocker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue