Skip to content

Implement simple HAProxy Protocol v2 support#177

Open
colbster937 wants to merge 2 commits intoretromcorg:masterfrom
WebMCDevelopment:master
Open

Implement simple HAProxy Protocol v2 support#177
colbster937 wants to merge 2 commits intoretromcorg:masterfrom
WebMCDevelopment:master

Conversation

@colbster937
Copy link
Copy Markdown

📌 Pull Request

Description

This allows servers to accept PROXY protocol v2 headers to preserve the original client IP.

Related Issues / Discussions

Motivation & Context

This is useful for setups where the server is running behind a proxy, such as load balancing a poseidon server across multiple ips, or in cases like mine where my server is self hosted without port forwarding but still needs access to the original client IPs.

Type of Change

Please tick all that apply:

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ⚡ Performance improvement
  • 🧩 New feature (non-breaking)
  • 🔧 Refactor / cleanup (no functional changes)
  • 🔥 Crash / exploit fix
  • 📚 Documentation update
  • ❗ Breaking change (may affect plugins or server behavior)

Testing Performed

  • Compiled successfully with mvn clean package
  • Tested on a Beta 1.7.3 server
  • Existing functionality verified
  • Edge cases considered

Test details:

Tested locally with NGINX using PROXY protocol v2 enabled, and normally with PROXY protocol v2 disabled.

Compatibility Considerations

  • No known compatibility impact
  • Potential plugin impact (described below)
  • Network / protocol (Netcode) behavior changed
  • Configuration change required

Compatibility Notes

Checklist

Please confirm the following:

  • No unnecessary formatting or whitespace-only changes
  • Changes are compatible with Minecraft Beta 1.7.3
  • No dependencies have been added without discussion with the RetroMC team

Thanks for contributing to Project Poseidon!

@RhysB RhysB self-assigned this Feb 8, 2026
@RhysB RhysB added the enhancement New feature or request label Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Haproxy support Add HAProxy's Proxy Protocol Support

2 participants