Files
horizon-airdef/launcher/src/lib.rs
T
zhykowo 3e79b22c43 Launcher downloads go through the proxy the player sets
Everything the launcher fetches now goes through one HTTP proxy when there is
one: Horizon's releases and the launcher's own update, Minecraft's files and
Java from Mojang, Modrinth, CurseForge, the mod registry, pictures, Microsoft
sign-in, Tailscale's API, and the jars a modpack import downloads. It is
Settings' Proxy row (`proxy` in settings.json), or `horizon-launcher settings
proxy http://host:port`; without one, HTTPS_PROXY, HTTP_PROXY and ALL_PROXY
apply, with NO_PROXY naming the hosts to reach directly.

A local address never goes through it, and the Servers page's calls to a game
server's API stay direct: they are on loopback and asked every second.

horizon-port-pack builds its own agents, so the launcher hands it the address
(net.rs); run on its own, it reads the same variables.

Co-Authored-By: WorkBuddy AI (DeepSeek-V4.1-Flash) <noreply@workbuddy.cn>
2026-10-26 16:28:24 +08:00

19 lines
356 B
Rust

//! The launcher's core, shared by the GUI, the CLI and the MCP server.
pub mod account;
pub mod agents;
pub mod backend;
pub mod browser;
pub mod desktop;
#[cfg(unix)]
pub mod game_app;
pub mod heads;
pub mod modpacks;
pub mod mojang;
pub mod process;
pub mod proxy;
pub mod servers;
pub mod signed;
pub mod sources;
pub mod tailscale;
pub mod telemetry;