Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-02-28 09:53:54 +08:00
commit 0411414630
2 changed files with 2 additions and 8 deletions

View file

@ -204,7 +204,7 @@ func CheckAuth(c *gin.Context) {
}
}
if strings.HasSuffix(c.Request.RequestURI, "/check-auth") {
if "/check-auth" == c.Request.URL.Path { // 跳过访问授权页
c.Next()
return
}
@ -228,11 +228,5 @@ func CheckAuth(c *gin.Context) {
return
}
if u := c.Query("url"); "" != u {
c.Redirect(302, u)
c.Abort()
return
}
c.Next()
}

View file

@ -215,7 +215,7 @@ func initHistoryDBConnection() {
historyDB.Close()
}
dsn := util.DBPath + "?_journal_mode=WAL" +
dsn := util.HistoryDBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +
"&_secure_delete=OFF" +