Skip to content

Fix bedrock connection packet error#586

Draft
robinbraemer wants to merge 2 commits intomasterfrom
cursor/fix-bedrock-connection-packet-error-a6f5
Draft

Fix bedrock connection packet error#586
robinbraemer wants to merge 2 commits intomasterfrom
cursor/fix-bedrock-connection-packet-error-a6f5

Conversation

@robinbraemer
Copy link
Member

Add Bedrock/Floodgate hostname preprocessing in Lite mode to fix packet decode errors for Bedrock players.

In Lite mode, Bedrock connections using Floodgate were forwarded without stripping the \x00encrypted_data from the hostname. This caused backend Velocity servers to receive malformed hostnames and fail to decode packets, resulting in connection errors for Bedrock players. This change ensures the hostname is properly cleaned before forwarding.


Open in Cursor Open in Web

Co-authored-by: robin.braemer <robin.braemer@web.de>
@cursor
Copy link

cursor bot commented Oct 20, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 20, 2025

Deploying gate-minekube with  Cloudflare Pages  Cloudflare Pages

Latest commit: 791d5ce
Status: ✅  Deploy successful!
Preview URL: https://8d2e1ee9.gate-minekube.pages.dev
Branch Preview URL: https://cursor-fix-bedrock-connectio.gate-minekube.pages.dev

View logs

This commit introduces a new configuration option `stripBedrockData` for Gate Lite. This option allows users to choose whether to preserve or strip Floodgate-encoded Bedrock player data from the virtual host before forwarding the connection to the backend server. By default, the Floodgate data is preserved, which is the recommended setting for most setups where the backend server has the Floodgate plugin installed. However, if the backend server does not use Floodgate, enabling `stripBedrockData` will send a clean hostname to the backend.

Co-authored-by: robin.braemer <robin.braemer@web.de>
@robinbraemer
Copy link
Member Author

I haven't tested yet, and it might not make sense. Most people want would want to forward Geyser forwarding data to the Paper server where floodgate plugin is installed. Geyser Standalone > Gate Lite > Paper (w/ floodgate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants