fix 4976: make admin serve HTTP only

This commit is contained in:
Deng Ming 2022-06-10 21:23:00 +08:00
parent af271bcc6e
commit 41cc57dcf2
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# developing
- [Fix issue 4961, `leafInfo.match()` use `path.join()` to deal with `wildcardValues`, which may lead to cross directory risk ](https://github.com/beego/beego/pull/4964)
- [Fix 4975: graceful server listen the specific address](https://github.com/beego/beego/pull/4979)
- [Fix 4976: make admin serve HTTP only](https://github.com/beego/beego/pull/4980)
# v2.0.3
- [upgrade redisgo to v1.8.8](https://github.com/beego/beego/pull/4872)
- [fix prometheus CVE-2022-21698](https://github.com/beego/beego/pull/4878)

View File

@ -101,6 +101,7 @@ func registerAdmin() error {
// copy config to avoid conflict
adminCfg := *BConfig
adminCfg.Listen.EnableHTTPS = false
beeAdminApp = &adminApp{
HttpServer: NewHttpServerWithCfg(&adminCfg),
}