From 806b55c2926ce222d97e446f3a0f1dd13abbd571 Mon Sep 17 00:00:00 2001 From: fatedier Date: Tue, 24 Oct 2023 10:08:29 +0800 Subject: [PATCH] admin user not convert in INI (#3719) --- Release.md | 2 +- pkg/config/legacy/conversion.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Release.md b/Release.md index 61ea1f44..1660f1e1 100644 --- a/Release.md +++ b/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. diff --git a/pkg/config/legacy/conversion.go b/pkg/config/legacy/conversion.go index 7a550947..0892e4f2 100644 --- a/pkg/config/legacy/conversion.go +++ b/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