From c565a429afd8f3fb1a9aa40c8db696090b91fd54 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