瀏覽代碼

fix setting

Hamidreza Ghavami 1 年之前
父節點
當前提交
c565a429af
共有 1 個文件被更改,包括 1 次插入1 次删除
  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