mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 06:16:59 +08:00
remove option dashboard_tls
This commit is contained in:
@@ -119,11 +119,11 @@ func ParseConfigFile(file string) (controller.HandleController, server.TLS, erro
|
|||||||
common.PluginPort = commonSection.Key("plugin_port").MustInt(7200)
|
common.PluginPort = commonSection.Key("plugin_port").MustInt(7200)
|
||||||
common.User = commonSection.Key("admin_user").Value()
|
common.User = commonSection.Key("admin_user").Value()
|
||||||
common.Pwd = commonSection.Key("admin_pwd").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.DashboardAddr = commonSection.Key("dashboard_addr").MustString("127.0.0.1")
|
||||||
common.DashboardPort = commonSection.Key("dashboard_port").MustInt(7500)
|
common.DashboardPort = commonSection.Key("dashboard_port").MustInt(7500)
|
||||||
common.DashboardUser = commonSection.Key("dashboard_user").Value()
|
common.DashboardUser = commonSection.Key("dashboard_user").Value()
|
||||||
common.DashboardPwd = commonSection.Key("dashboard_pwd").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.Enable = commonSection.Key("tls_mode").MustBool(false)
|
||||||
tls.Cert = commonSection.Key("tls_cert_file").MustString("")
|
tls.Cert = commonSection.Key("tls_cert_file").MustString("")
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ dashboard_addr = 127.0.0.1
|
|||||||
dashboard_port = 7500
|
dashboard_port = 7500
|
||||||
dashboard_user = admin
|
dashboard_user = admin
|
||||||
dashboard_pwd = admin
|
dashboard_pwd = admin
|
||||||
; if your frps dashboard enable tls, change this to true
|
|
||||||
dashboard_tls = false
|
|
||||||
|
|
||||||
; user tokens
|
; user tokens
|
||||||
[users]
|
[users]
|
||||||
|
|||||||
Reference in New Issue
Block a user