diff options
| author | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-31 01:59:59 +0300 |
|---|---|---|
| committer | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-31 01:59:59 +0300 |
| commit | c565a429afd8f3fb1a9aa40c8db696090b91fd54 (patch) | |
| tree | ad4813ed7f0c8caf9ba08fa3d0681852a8877f8e | |
| parent | 572d912858a1cea29408e253c3cb19146e5bd0a3 (diff) | |
fix setting
| -rw-r--r-- | web/controller/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
