增加登录Banner开关,默认开启

This commit is contained in:
wsczx
2025-08-24 01:16:27 +08:00
parent a44f2d6161
commit 437749acc5
4 changed files with 11 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ var configs = []config{
{Typ: cfgBool, Name: "http_server_log", Usage: "开启go标准库http.Server的日志", ValBool: false},
{Typ: cfgBool, Name: "pprof", Usage: "开启pprof", ValBool: true},
{Typ: cfgStr, Name: "issuer", Usage: "系统名称", ValStr: "XX公司VPN"},
{Typ: cfgBool, Name: "enable_banner", Usage: "登录横幅", ValBool: true},
{Typ: cfgStr, Name: "admin_user", Usage: "管理用户名", ValStr: "admin"},
{Typ: cfgStr, Name: "admin_pass", Usage: "管理用户密码", ValStr: defaultPwd},
{Typ: cfgStr, Name: "admin_otp", Usage: "管理用户otp,生成命令 ./anylink tool -o", ValStr: ""},