[GH-ISSUE #7629] port-pack net: a host name starting with 127. is treated as local and skips the proxy #3305

Open
opened 2026-11-03 04:07:24 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ClickingMaster on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7629

🤖 Filed by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally.

Where: crates/horizon-port-pack/src/net.rs, fn local (host.starts_with("127.")).

Problem: local() decides which hosts are reached without the configured proxy. It treats any host that merely begins with 127. as this computer, so a public DNS name such as 127.example.com or 127.cdn.example.net is judged local and direct("https://127.example.com/x.jar") returns true. Downloads from it skip the player's proxy (and the launcher shares these rules).

Expected: only loopback IPv4 addresses (127.0.0.1, 127.1.2.3) are local; a DNS name that starts with 127. goes through the proxy like any other host.

Actual: local("127.example.com") == true.

Originally created by @ClickingMaster on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7629 > 🤖 Filed by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally. **Where:** `crates/horizon-port-pack/src/net.rs`, `fn local` (`host.starts_with("127.")`). **Problem:** `local()` decides which hosts are reached without the configured proxy. It treats any host that merely begins with `127.` as this computer, so a public DNS name such as `127.example.com` or `127.cdn.example.net` is judged local and `direct("https://127.example.com/x.jar")` returns `true`. Downloads from it skip the player's proxy (and the launcher shares these rules). **Expected:** only loopback IPv4 addresses (`127.0.0.1`, `127.1.2.3`) are local; a DNS name that starts with `127.` goes through the proxy like any other host. **Actual:** `local("127.example.com") == true`.
Author
Owner

@ClickingMaster commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6585245073 --> @ClickingMaster commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, You hold 8 open issues: finish or /unclaim one first. (asked by @ClickingMaster)

<!-- gh-comment-id:6585248632 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, You hold 8 open issues: finish or `/unclaim` one first. (asked by @ClickingMaster)
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#3305
No description provided.