Pārlūkot izejas kodu

admin user not convert in INI (#3719)

fatedier 1 gadu atpakaļ
vecāks
revīzija
806b55c292
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 1
      Release.md
  2. 1 0
      pkg/config/legacy/conversion.go

+ 1 - 1
Release.md

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

+ 1 - 0
pkg/config/legacy/conversion.go

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