From 675b7d1d659c30d0e4aff737160dbeb541c64413 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Wed, 31 May 2023 03:29:59 +0430 Subject: [PATCH] fix setting --- web/controller/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/controller/setting.go b/web/controller/setting.go index 306563a2..cd509293 100644 --- a/web/controller/setting.go +++ b/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