How nwmqpa/minecraft-maintenance-proxy works
Project type and purpose
• This is a Rust-based command-line tool (not a web “full-stack” app) that acts as a network proxy for Minecraft server update requests.
• According to README.md, it sits between Minecraft clients and the official update server in order to present a maintenance page or otherwise manage update traffic.
File structure
• Cargo.toml: Rust project manifest, lists dependencies and metadata.
• src/args.rs: argument-parsing module (likely using clap or structopt).
• src/cli.rs: top-level command dispatch and help text.
• src/install.rs: logic to install or register the proxy (writes config, sets up network hooks).
• src/proxy.rs: the heart of the network service, accepting incoming Minecraft protocol connections, forwarding requests or serving maintenance.
• src/main.rs: application entry point; wires args → cli → install/proxy.
• assets/: static files or templates served during “maintenance mode.”
README for additional insights
• Implies the proxy will need to talk outbound to the official Mojang update servers and inbound to Minecraft clients over TCP.
Detail
• Internal calls (main.rs → cli.rs → args.rs) as fine-grained sequences if helpful.
• Do not omit the assets directory nor the installation flow; both are crucial for understanding maintenance-mode behavior.