geforkt von Mirrors/Paper
Readd patch to remove invalid signature on login error
Dieser Commit ist enthalten in:
Ursprung
15ce56cb40
Commit
e08395b4c2
19
patches/server/Remove-invalid-signature-login-stacktrace.patch
Normale Datei
19
patches/server/Remove-invalid-signature-login-stacktrace.patch
Normale Datei
@ -0,0 +1,19 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nassim Jahnke <nassim@njahnke.dev>
|
||||||
|
Date: Fri, 10 Jun 2022 16:02:35 +0200
|
||||||
|
Subject: [PATCH] Remove invalid signature login stacktrace
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
|
@@ -0,0 +0,0 @@ public class ServerLoginPacketListenerImpl implements TickablePacketListener, Se
|
||||||
|
|
||||||
|
profilepublickey = ServerLoginPacketListenerImpl.validatePublicKey(this.profilePublicKeyData, this.gameProfile.getId(), signaturevalidator, this.server.enforceSecureProfile());
|
||||||
|
} catch (ServerLoginPacketListenerImpl.PublicKeyValidationException loginlistener_a) {
|
||||||
|
- ServerLoginPacketListenerImpl.LOGGER.error(loginlistener_a.getMessage(), loginlistener_a.getCause());
|
||||||
|
+ //ServerLoginPacketListenerImpl.LOGGER.error(loginlistener_a.getMessage(), loginlistener_a.getCause()); // Paper - unnecessary stacktrace
|
||||||
|
if (!this.connection.isMemoryConnection()) {
|
||||||
|
this.disconnect(loginlistener_a.getComponent());
|
||||||
|
return;
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren