fix dashboard_addr https issue

This commit is contained in:
2023-09-27 12:01:29 +08:00
parent 53ba8780ff
commit f6d2362f48
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ func parseConfigFile(configFile, tokensFile string) (controller.HandleController
}
}
common.Common.DashboardTls = strings.HasPrefix("https://", strings.ToLower(common.Common.DashboardAddr))
common.Common.DashboardTls = strings.HasPrefix(strings.ToLower(common.Common.DashboardAddr), "https://")
tls := server.TLS{
Enable: common.Common.TlsMode,