[PR #5269] [MERGED] LAN login: never join without an account (follow-up to #5107) #6177

Closed
opened 2026-11-03 06:15:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: sweep-c/finish-5107


📝 Commits (2)

  • 87e3e1d LAN login: never join without an account
  • 9c9ab69 Merge remote-tracking branch 'origin/main' into pr5107

📊 Changes

1 file changed (+22 additions, -13 deletions)

View changed files

📝 crates/horizon-client/src/net.rs (+22 -13)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Follow-up to #5107 (merged), by @oskal675-design.

What and why

Since #5107, a LAN entry keeps going after a failed session join, as vanilla's ClientHandshakePacketListenerImpl.handleHello does for ServerData.isLan. That fallback also covered a client with no account at all. A vanilla client always has one, and Mojang's rules forbid play without an account that owns the game.

Now the fallback needs a signed-in account whose session join failed: net::continues_after_failed_join(lan, signed_in). The unit test checks that a client without an account sends no key for either kind. It still prints the signed-in rule for tools/test_lan_auth_parity.py, which compares it with vanilla's listener.

Proof

cargo test -p horizon-client --lib net::tests::lan_login_continues_after_authentication_failure: ok (lan_auth=LAN:true:false, lan_auth=OTHER:false:true).

🤖 Generated with Claude Code


🔄 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/5269 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `sweep-c/finish-5107` --- ### 📝 Commits (2) - [`87e3e1d`](https://github.com/horizon-rust/horizon/commit/87e3e1d155f6dc21c1dc7a3b6cd8083527c9732b) LAN login: never join without an account - [`9c9ab69`](https://github.com/horizon-rust/horizon/commit/9c9ab69366c2d52ae259fceec1dba29df6ab3c69) Merge remote-tracking branch 'origin/main' into pr5107 ### 📊 Changes **1 file changed** (+22 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/net.rs` (+22 -13) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Follow-up to #5107 (merged), by @oskal675-design. ## What and why Since #5107, a LAN entry keeps going after a failed session join, as vanilla's `ClientHandshakePacketListenerImpl.handleHello` does for `ServerData.isLan`. That fallback also covered a client with no account at all. A vanilla client always has one, and Mojang's rules forbid play without an account that owns the game. Now the fallback needs a signed-in account whose session join failed: `net::continues_after_failed_join(lan, signed_in)`. The unit test checks that a client without an account sends no key for either kind. It still prints the signed-in rule for `tools/test_lan_auth_parity.py`, which compares it with vanilla's listener. ## Proof `cargo test -p horizon-client --lib net::tests::lan_login_continues_after_authentication_failure`: ok (`lan_auth=LAN:true:false`, `lan_auth=OTHER:false:true`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:34 +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#6177
No description provided.