admin user not convert in INI (#3719)

This commit is contained in:
fatedier 2023-10-24 10:08:29 +08:00 committed by GitHub
parent 496b1f1078
commit 806b55c292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,3 @@
### Fixes ### Fixes
* Encryption and compression are not displayed correctly in the dashboard. * `admin_user` is not effective in the INI configuration.

View File

@ -71,6 +71,7 @@ func Convert_ClientCommonConf_To_v1(conf *ClientCommonConf) *v1.ClientCommonConf
out.WebServer.Addr = conf.AdminAddr out.WebServer.Addr = conf.AdminAddr
out.WebServer.Port = conf.AdminPort out.WebServer.Port = conf.AdminPort
out.WebServer.User = conf.AdminUser
out.WebServer.Password = conf.AdminPwd out.WebServer.Password = conf.AdminPwd
out.WebServer.AssetsDir = conf.AssetsDir out.WebServer.AssetsDir = conf.AssetsDir
out.WebServer.PprofEnable = conf.PprofEnable out.WebServer.PprofEnable = conf.PprofEnable