-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Allow setting forwarding mode separately for different servers #1357
base: dev/3.0.0
Are you sure you want to change the base?
Conversation
Incompatible with Ambassador 1.4.4
|
Ambassador used |
Don’t really see how that’s relevant? As you’ve already stated it’s not part of the API and thus subject to breaking changes. |
If a mod only uses |
Yes, but I don’t really see how that’s relevant? Using internals is not supported |
Yes, I'm just explaining why it's incompatible since he posted. |
# Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java
bump? |
Shouldn't this be paired with a pull request to update the docs? |
Yes, but the docs might as well be changed after this is merged. You're free to open a PR if you want to though. |
proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java
Outdated
Show resolved
Hide resolved
Reflect changes from PaperMC/Velocity#1357
Just a note here: should we consider also allowing to have forwarding secret configured for each server / each connection? |
It would be possible, but I wonder what the use case is, i.e. why do you need to have different forwarding secrets for different servers? |
It might not be the most common one but I think its there, it will mainly make the secrets harder to get because there are multiple ones, so at the end it improves security |
I agree but I think configuring the firewall to reject direct WAN connections to your proxied servers may be a simpler and safer solution. I will put this on hold for now. |
proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java
Outdated
Show resolved
Hide resolved
proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java
Outdated
Show resolved
Hide resolved
proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java
Outdated
Show resolved
Hide resolved
This PR breaks LimboAPI at https://github.com/Elytrium/LimboAPI/blob/e632cff20bd80f78b75a6634b7016464b650938a/plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginListener.java#L223. I have fixed it for myself with patch 0f4bef9. |
Also, if |
I think you should move the storage of the forwarding mode override to ServerInfo. Having it being in the config class means that it ends up being really annoying to use this from the api (which is needed for dynamic server registrations) |
Fix #304
It is quite common to have a setup which includes both servers newer than 1.12 and older than 1.12. By allowing setting forwarding modes separately, we don't need to use the legacy forwarding mode all the time. Especially it is discontinued for newer fabric versions.
This PR is fully compatible with old config files and no changes to API are made.
You can find builds with this change included here: https://github.com/wafarm/Velocity/releases