mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 14:56:09 +01:00
🔒 Randomly generate the cookie key https://github.com/siyuan-note/siyuan/issues/16690
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
cef8ca8cf7
commit
a65dcd220f
5 changed files with 13 additions and 7 deletions
|
|
@ -37,7 +37,7 @@ import (
|
|||
|
||||
//export StartKernelFast
|
||||
func StartKernelFast(container, appDir, workspaceBaseDir, localIPs *C.char) {
|
||||
go server.Serve(true)
|
||||
go server.Serve(true, model.Conf.CookieKey)
|
||||
}
|
||||
|
||||
//export StartKernel
|
||||
|
|
@ -49,7 +49,7 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang
|
|||
util.BootMobile(C.GoString(container), C.GoString(appDir), C.GoString(workspaceBaseDir), C.GoString(lang))
|
||||
|
||||
model.InitConf()
|
||||
go server.Serve(false)
|
||||
go server.Serve(false, model.Conf.CookieKey)
|
||||
go func() {
|
||||
model.InitAppearance()
|
||||
sql.InitDatabase(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue