소스 검색

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