mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
修改监控为证书监控支持文件导入和smtp监控
监控支持多渠道通知 将静态文件打包到二进制文件
This commit is contained in:
10
cmd/main.go
10
cmd/main.go
@@ -120,17 +120,9 @@ start - 启动 ALLinSSL
|
||||
fmt.Print("请输入安全入口: ")
|
||||
fmt.Scanln(&secure)
|
||||
}
|
||||
if len(secure) < 5 {
|
||||
fmt.Println("安全入口至少需要5位")
|
||||
return
|
||||
}
|
||||
if secure[0] != '/' {
|
||||
if secure != "" && 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