geforkt von Mirrors/Velocity
Hide ip address in initial and legacy connections (#1025)
Dieser Commit ist enthalten in:
Ursprung
00ef92bc5c
Commit
de57563eab
@ -236,7 +236,12 @@ public class HandshakeSessionHandler implements MinecraftSessionHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "[legacy connection] " + this.getRemoteAddress().toString();
|
boolean isPlayerAddressLoggingEnabled = connection.server.getConfiguration()
|
||||||
|
.isPlayerAddressLoggingEnabled();
|
||||||
|
String playerIp =
|
||||||
|
isPlayerAddressLoggingEnabled
|
||||||
|
? this.getRemoteAddress().toString() : "<ip address withheld>";
|
||||||
|
return "[legacy connection] " + playerIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -75,7 +75,12 @@ public final class InitialInboundConnection implements VelocityInboundConnection
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "[initial connection] " + connection.getRemoteAddress().toString();
|
boolean isPlayerAddressLoggingEnabled = connection.server.getConfiguration()
|
||||||
|
.isPlayerAddressLoggingEnabled();
|
||||||
|
String playerIp =
|
||||||
|
isPlayerAddressLoggingEnabled
|
||||||
|
? connection.getRemoteAddress().toString() : "<ip address withheld>";
|
||||||
|
return "[initial connection] " + playerIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren