fix setting

This commit is contained in:
Hamidreza Ghavami 2023-05-31 03:29:59 +04:30
parent 4bb20d8f13
commit 675b7d1d65

View file

@ -93,7 +93,7 @@ func (a *SettingController) getDefaultSettings(c *gin.Context) {
}
subTLS := false
if result["subKeyFile"].(string) != "" || result["subCertFile"].(string) != "" {
if result["subKeyFile"] != "" || result["subCertFile"] != "" {
subTLS = true
}
result["subTLS"] = subTLS