【调整】可在设置中将安全入口设置为空

This commit is contained in:
v-me-50
2025-07-15 09:18:34 +08:00
parent c653b09a0d
commit 624fc06f3e
3 changed files with 12 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ func Save(setting *Setting) error {
public.TimeOut = setting.Timeout
restart = true
}
if setting.Secure != "" && setting.Secure != public.Secure {
if setting.Secure != public.Secure {
s.Where("key = 'secure'", []interface{}{}).Update(map[string]interface{}{"value": setting.Secure})
public.TimeOut = setting.Timeout
restart = true