fix(http): Fix console bucket management functionality failure caused by RUSTFS_SERVER_DOMAINS (#1467)

This commit is contained in:
houseme
2026-01-11 16:47:51 +08:00
committed by GitHub
parent 703d961168
commit ddaa9e35ea

View File

@@ -250,7 +250,8 @@ pub async fn start_http_server(
b.set_access(store.clone());
b.set_route(admin::make_admin_route(opt.console_enable)?);
if !opt.server_domains.is_empty() {
// console server does not need to setup virtual-hosted-style requests
if !opt.server_domains.is_empty() && !opt.console_enable {
MultiDomain::new(&opt.server_domains).map_err(Error::other)?; // validate domains
// add the default port number to the given server domains