From a550709c959501680214a4d3d1c6714c62cf86e0 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 22 Dec 2024 16:25:00 +0800 Subject: [PATCH] fix: install host --- cmd/dashboard/controller/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dashboard/controller/setting.go b/cmd/dashboard/controller/setting.go index 5ae4b89..bcb894a 100644 --- a/cmd/dashboard/controller/setting.go +++ b/cmd/dashboard/controller/setting.go @@ -45,8 +45,8 @@ func listConfig(c *gin.Context) (model.SettingResponse, error) { } if !isAdmin { - conf.Config.TLS = false - conf.Config.InstallHost = conf.InstallHost + conf.Config.TLS = singleton.Conf.TLS + conf.Config.InstallHost = singleton.Conf.InstallHost } conf.Config.Language = strings.Replace(conf.Config.Language, "_", "-", -1)