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