diff --git a/cmd/frps-panel/cmd.go b/cmd/frps-panel/cmd.go index 84f6ec7..6c7a966 100644 --- a/cmd/frps-panel/cmd.go +++ b/cmd/frps-panel/cmd.go @@ -119,11 +119,11 @@ func ParseConfigFile(file string) (controller.HandleController, server.TLS, erro common.PluginPort = commonSection.Key("plugin_port").MustInt(7200) common.User = commonSection.Key("admin_user").Value() common.Pwd = commonSection.Key("admin_pwd").Value() - common.DashboardTLS = commonSection.Key("dashboard_tls").MustBool(false) common.DashboardAddr = commonSection.Key("dashboard_addr").MustString("127.0.0.1") common.DashboardPort = commonSection.Key("dashboard_port").MustInt(7500) common.DashboardUser = commonSection.Key("dashboard_user").Value() common.DashboardPwd = commonSection.Key("dashboard_pwd").Value() + common.DashboardTLS = strings.HasPrefix(strings.ToLower(common.DashboardAddr), "https://") tls.Enable = commonSection.Key("tls_mode").MustBool(false) tls.Cert = commonSection.Key("tls_cert_file").MustString("") diff --git a/config/frps-panel.ini b/config/frps-panel.ini index 41307fc..483f422 100644 --- a/config/frps-panel.ini +++ b/config/frps-panel.ini @@ -16,8 +16,6 @@ dashboard_addr = 127.0.0.1 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = admin -; if your frps dashboard enable tls, change this to true -dashboard_tls = false ; user tokens [users]