[PR #2059] [MERGED] Launcher downloads go through the proxy the player sets #3972

Closed
opened 2026-11-03 04:13:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2059
Author: @zhykowo
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-proxy


📝 Commits (3)

  • 3e79b22 Launcher downloads go through the proxy the player sets
  • a9453b7 Modpack downloads honour NO_PROXY too
  • da54f98 Proxy: one copy of the rules, none of it per request

📊 Changes

19 files changed (+712 additions, -56 deletions)

View changed files

📝 crates/horizon-port-pack/src/fetch.rs (+5 -2)
📝 crates/horizon-port-pack/src/lib.rs (+1 -0)
📝 crates/horizon-port-pack/src/modrinth.rs (+4 -2)
➕ crates/horizon-port-pack/src/net.rs (+352 -0)
📝 docs/launcher-commands.md (+2 -2)
📝 launcher/README.md (+11 -1)
📝 launcher/src/account.rs (+22 -13)
📝 launcher/src/backend.rs (+13 -5)
📝 launcher/src/browser/curseforge.rs (+1 -1)
📝 launcher/src/browser/download.rs (+27 -14)
📝 launcher/src/browser/horizon.rs (+1 -1)
📝 launcher/src/browser/images.rs (+1 -1)
📝 launcher/src/browser/modrinth.rs (+1 -1)
📝 launcher/src/cli.rs (+14 -2)
📝 launcher/src/lib.rs (+1 -0)
📝 launcher/src/main.rs (+107 -7)
➕ launcher/src/proxy.rs (+140 -0)
📝 launcher/src/servers.rs (+2 -0)
📝 launcher/src/tailscale.rs (+7 -4)

📄 Description

Every launcher download goes through one HTTP proxy.

  • Set it: Settings › Network › Proxy, or horizon-launcher settings proxy http://host:port. Without one, HTTPS_PROXY / HTTP_PROXY / ALL_PROXY apply.
  • Always direct: NO_PROXY hosts, loopback, and the Servers page's local game-server API.
  • Covered: releases, self-update, Mojang files + Java, Modrinth, CurseForge, the mod registry, images, Microsoft sign-in, Tailscale's API, modpack import jars.
  • Not yet: SOCKS proxies.

Checks: fmt + clippy clean, 66 tests pass. pr_ready's clippy rows fail on this machine because its sandbox blocks reg.exe (the icon build script), unrelated to this branch.

🤖 Opened by zhykowo's AI agent (WorkBuddy AI).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2059 **Author:** [@zhykowo](https://github.com/zhykowo) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-proxy` --- ### 📝 Commits (3) - [`3e79b22`](https://github.com/horizon-rust/horizon/commit/3e79b22c43614b0bee552441e4ebbfbacdaf0be8) Launcher downloads go through the proxy the player sets - [`a9453b7`](https://github.com/horizon-rust/horizon/commit/a9453b7c933694d9656f73ddd9afa32c8e206003) Modpack downloads honour NO_PROXY too - [`da54f98`](https://github.com/horizon-rust/horizon/commit/da54f988d44cc2c33c0180a3a8ecad64cdce103d) Proxy: one copy of the rules, none of it per request ### 📊 Changes **19 files changed** (+712 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/fetch.rs` (+5 -2) 📝 `crates/horizon-port-pack/src/lib.rs` (+1 -0) 📝 `crates/horizon-port-pack/src/modrinth.rs` (+4 -2) ➕ `crates/horizon-port-pack/src/net.rs` (+352 -0) 📝 `docs/launcher-commands.md` (+2 -2) 📝 `launcher/README.md` (+11 -1) 📝 `launcher/src/account.rs` (+22 -13) 📝 `launcher/src/backend.rs` (+13 -5) 📝 `launcher/src/browser/curseforge.rs` (+1 -1) 📝 `launcher/src/browser/download.rs` (+27 -14) 📝 `launcher/src/browser/horizon.rs` (+1 -1) 📝 `launcher/src/browser/images.rs` (+1 -1) 📝 `launcher/src/browser/modrinth.rs` (+1 -1) 📝 `launcher/src/cli.rs` (+14 -2) 📝 `launcher/src/lib.rs` (+1 -0) 📝 `launcher/src/main.rs` (+107 -7) ➕ `launcher/src/proxy.rs` (+140 -0) 📝 `launcher/src/servers.rs` (+2 -0) 📝 `launcher/src/tailscale.rs` (+7 -4) </details> ### 📄 Description **Every launcher download goes through one HTTP proxy.** - **Set it:** Settings › Network › Proxy, or `horizon-launcher settings proxy http://host:port`. Without one, `HTTPS_PROXY` / `HTTP_PROXY` / `ALL_PROXY` apply. - **Always direct:** `NO_PROXY` hosts, loopback, and the Servers page's local game-server API. - **Covered:** releases, self-update, Mojang files + Java, Modrinth, CurseForge, the mod registry, images, Microsoft sign-in, Tailscale's API, modpack import jars. - **Not yet:** SOCKS proxies. Checks: fmt + clippy clean, 66 tests pass. `pr_ready`'s clippy rows fail on this machine because its sandbox blocks `reg.exe` (the icon build script), unrelated to this branch. > 🤖 Opened by zhykowo's AI agent (WorkBuddy AI). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3972
No description provided.