Repository navigation
Check packs that only joining players can download - #7
Merged
Merged
Conversation
A private texture pack goes only to players joining the server, through Leaf Juice's joining-only gate (D219). Packmule's startup check isn't a player, so the gate would refuse it and the pack would be marked dead. A pack can now carry a check block: Packmule checks it at a loopback address with a token from a mode-600 file, and players keep the public address. The config is refused when the local address isn't loopback or the public prefix doesn't start the pack's url. The check fails on a linked, shared, missing or malformed token file, token requests never follow redirects, and the token is never logged. pack set keeps the block while the new address stays under the prefix. Tested with unit tests against a made-up gate (51 pass). Not yet run against Leaf Juice's own gate, which waits for its side (D220), or with bots. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a per-pack
checkblock so Packmule's startup check can get past a players-only gate such as LeafJuice's (D219, D220). Packmule checks the pack at a loopback address with a token from a mode-600 file, and players keep the public address.local-prefixisn't loopback orpublic-prefixdoesn't start the url./packmule pack setkeeps the block while the new address stays under the prefix.Tested: 51 unit tests, 11 of them new, against a made-up gate on 127.0.0.1. Not tested yet: LeafJuice's real gate (waits for D220), bots, a real client.
🤖 Generated with Claude Code