Warn only when legacy forwarding detected

This commit is contained in:
Ismael 2023-07-09 14:56:15 +02:00 committed by GitHub
parent 7895eeb1fb
commit b38b115c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -152,8 +152,9 @@ index da0efa36..03c628f4 100644
+ forwardingMode = ForwardingMode.valueOf(config.getString("forwarding_mode", ForwardingMode.BUNGEECORD_LEGACY.toString()).toUpperCase());
+ Logger logger = BungeeCord.getInstance().getLogger();
+ if (super.isIpForward()) {
+ logger.warning("The forwarding mode is set as BungeeCord legacy, it is recommended that you use another mode to avoid spoofing information attacks.");
+
+ if ((forwardingMode) == ForwardingMode.BUNGEECORD_LEGACY) {
+ logger.warning("The forwarding mode is set as BungeeCord legacy, it is recommended that you use another mode to avoid spoofing information attacks.");
+ }
+ } else {
+ logger.warning("Information forwarding (ip-forwarding) is disabled. " +
+ "Player UUIDs may not be consistent across the servers. " +