From 3f717292bf69a6cf5fffa0e41253fd1ce08ec5cb Mon Sep 17 00:00:00 2001 From: houseme Date: Sun, 14 Sep 2025 01:14:14 +0800 Subject: [PATCH] feat(console): support accessing console endpoint via port 9000 (#533) * fix(main): update dns_init startup logic and remove unused code in http.rs - Refactored the DNS resolver initialization logic in `main.rs` for improved startup reliability and error handling. - Removed unused code from `http.rs` to keep the codebase clean and maintainable. * feat(console): support accessing console endpoint via port 9000 - Added compatibility to allow console access through port 9000. - Improved endpoint detection and routing for console service on standard and custom ports. - Enhanced user experience for environments using port 9000 as the default access point. --- rustfs/src/server/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfs/src/server/http.rs b/rustfs/src/server/http.rs index 2cfeed6f..1759ccaa 100644 --- a/rustfs/src/server/http.rs +++ b/rustfs/src/server/http.rs @@ -198,7 +198,7 @@ pub async fn start_http_server( b.set_auth(IAMAuth::new(access_key, secret_key)); b.set_access(store.clone()); // When console runs on separate port, disable console routes on main endpoint - let console_on_endpoint = false; // Console will run separately + let console_on_endpoint = opt.console_enable; // Console will run separately b.set_route(admin::make_admin_route(console_on_endpoint)?); if !opt.server_domains.is_empty() {