mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
【修复】安全入口非/开头时补全/
This commit is contained in:
@@ -106,6 +106,10 @@ func Save(setting *Setting) error {
|
||||
restart = true
|
||||
}
|
||||
if setting.Secure != public.Secure {
|
||||
// 非/开头则添加/
|
||||
if setting.Secure != "" && setting.Secure[0] != '/' {
|
||||
setting.Secure = "/" + setting.Secure
|
||||
}
|
||||
s.Where("key = 'secure'", []interface{}{}).Update(map[string]interface{}{"value": setting.Secure})
|
||||
public.TimeOut = setting.Timeout
|
||||
restart = true
|
||||
|
||||
Reference in New Issue
Block a user