An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve AccessAuthCode checking https://ld246.com/article/1738206227405
Daniel761241552774
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex d80d043fc1..b015f34115 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -494,6 +494,8 @@ func InitConf() {if "" != util.AccessAuthCode {Conf.AccessAuthCode = util.AccessAuthCode}+ Conf.AccessAuthCode = strings.TrimSpace(Conf.AccessAuthCode)+ Conf.AccessAuthCode = util.RemoveInvalid(Conf.AccessAuthCode)Conf.LocalIPs = util.GetLocalIPs()diff --git a/kernel/util/working.go b/kernel/util/working.goindex 69add8b5c1..fb412400d0 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -95,6 +95,8 @@ func Boot() {ServerPort = *portReadOnly, _ = strconv.ParseBool(*readOnly)AccessAuthCode = *accessAuthCode+ AccessAuthCode = strings.TrimSpace(AccessAuthCode)+ AccessAuthCode = RemoveInvalid(AccessAuthCode)Container = ContainerStdif RunInContainer {Container = ContainerDocker