From 32b0af7f9b1ecb7d05833aec12f5abefa11db7a7 Mon Sep 17 00:00:00 2001 From: yanghuanglin Date: Wed, 27 Sep 2023 12:02:33 +0800 Subject: [PATCH] fix dashboard_addr https issue --- cmd/frpc-panel/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frpc-panel/cmd.go b/cmd/frpc-panel/cmd.go index a70bb95..4928cde 100644 --- a/cmd/frpc-panel/cmd.go +++ b/cmd/frpc-panel/cmd.go @@ -76,7 +76,7 @@ func parseConfigFile(configFile, tokensFile string) (controller.HandleController log.Fatalf("decode config file %v error: %v", configFile, err) } - 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,