Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ProxyProtocol Support #43

Open
BroccoliGG opened this issue Jan 4, 2023 · 0 comments
Open

Add ProxyProtocol Support #43

BroccoliGG opened this issue Jan 4, 2023 · 0 comments

Comments

@BroccoliGG
Copy link

Currently, there is already a setting to read the original IP header of the player from the WaterdogPE

As well as this, I would like to see support for proxy protocols added so that the original IP of the player can be retrieved via proxy as well

Here, execute this.racknet.useProxyProtocol();
https://github.com/PowerNukkitX/PowerNukkitX/blob/master/src/main/java/cn/nukkit/network/RakNetInterface.java#L55

And can access the real IP with RakNetSession#getRealAddress();

@CoolLoong CoolLoong transferred this issue from PowerNukkitX/PowerNukkitX Jan 15, 2024
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

No branches or pull requests

1 participant