Warn only when legacy forwarding detected
This commit is contained in:
parent
7895eeb1fb
commit
b38b115c83
|
@ -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. " +
|
||||
|
|
Loading…
Reference in New Issue