mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 17:40:38 +00:00
* feat: improve address binding and port handling mechanism 1. Add support for ":port" format to enable dual-stack binding (IPv4/IPv6) 2. Implement automatic port allocation when port 0 is specified 3. Optimize server startup process with unified address resolution 4. Enhance error handling and logging for address resolution 5. Improve graceful shutdown with signal listening 6. Clean up commented code in console.rs Files: - ecstore/src/utils/net.rs - rustfs/src/console.rs - rustfs/src/main.rs Branch: feature/server-and-console-port * improve code for console * improve code * improve code for console and net.rs * Update rustfs/src/main.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update rustfs/src/utils/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
rustfs/ ├── Cargo.toml ├── src/ │ ├── main.rs # 主入口 │ ├── admin/ │ │ └── mod.rs # 管理接口 │ ├── auth/ │ │ └── mod.rs # 认证模块 │ ├── config/ │ │ ├── mod.rs # 配置模块 │ │ └── options.rs # 命令行参数 │ ├── console/ │ │ ├── mod.rs # 控制台模块 │ │ └── server.rs # 控制台服务器 │ ├── grpc/ │ │ └── mod.rs # gRPC 服务 │ ├── license/ │ │ └── mod.rs # 许可证管理 │ ├── logging/ │ │ └── mod.rs # 日志管理 │ ├── server/ │ │ ├── mod.rs # 服务器实现 │ │ ├── connection.rs # 连接处理 │ │ ├── service.rs # 服务实现 │ │ └── state.rs # 状态管理 │ ├── storage/ │ │ ├── mod.rs # 存储模块 │ │ └── fs.rs # 文件系统实现 │ └── utils/ │ └── mod.rs # 工具函数