Kaynağa Gözat

fix setting

Hamidreza Ghavami 1 yıl önce
ebeveyn
işleme
c565a429af
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      web/controller/setting.go

+ 1 - 1
web/controller/setting.go

@@ -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