mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
禁止设置安全入口为登录地址
This commit is contained in:
@@ -85,6 +85,10 @@ func main() {
|
||||
if secure[0] != '/' {
|
||||
secure = "/" + secure
|
||||
}
|
||||
if secure == "/login" {
|
||||
fmt.Println("安全入口不能是/login")
|
||||
return
|
||||
}
|
||||
err := public.UpdateSetting("secure", secure)
|
||||
if err != nil {
|
||||
fmt.Println("Error updating setting:", err)
|
||||
|
||||
Reference in New Issue
Block a user