aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0523-Add-bypass-host-check.patch
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-05-07 05:24:45 -0700
committerGitHub <[email protected]>2024-05-07 14:24:45 +0200
commit9e51f949417553240efe35719e5173edfd5a8dc1 (patch)
tree27902ab194a88b082a5037096b006c686e7fb07e /patches/server/0523-Add-bypass-host-check.patch
parentac3a5471c8dcdc1d0431025781da1d524895c47a (diff)
downloadPaper-9e51f949417553240efe35719e5173edfd5a8dc1.tar.gz
Paper-9e51f949417553240efe35719e5173edfd5a8dc1.zip
Fix ping event always receiving protocol version 0 (#10671)
Diffstat (limited to 'patches/server/0523-Add-bypass-host-check.patch')
-rw-r--r--patches/server/0523-Add-bypass-host-check.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0523-Add-bypass-host-check.patch b/patches/server/0523-Add-bypass-host-check.patch
index 8c40f13437..d6c893d808 100644
--- a/patches/server/0523-Add-bypass-host-check.patch
+++ b/patches/server/0523-Add-bypass-host-check.patch
@@ -8,7 +8,7 @@ Paper.bypassHostCheck
Seriously, fix your firewalls. -.-
diff --git a/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java
-index bcdb2cc4c735d939bdd0e9b7ec5246f51e57f299..6a33cb47c5dac403ad90ef95a56b99a6869e0459 100644
+index ffe3048d16809b177d2fb495a25a16ed78b50e6b..b5d8ef9dd24687b99f5cf547574351c359fb85ba 100644
--- a/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java
@@ -31,6 +31,7 @@ public class ServerHandshakePacketListenerImpl implements ServerHandshakePacketL
@@ -19,7 +19,7 @@ index bcdb2cc4c735d939bdd0e9b7ec5246f51e57f299..6a33cb47c5dac403ad90ef95a56b99a6
public ServerHandshakePacketListenerImpl(MinecraftServer server, Connection connection) {
this.server = server;
-@@ -159,7 +160,7 @@ public class ServerHandshakePacketListenerImpl implements ServerHandshakePacketL
+@@ -163,7 +164,7 @@ public class ServerHandshakePacketListenerImpl implements ServerHandshakePacketL
String[] split = packet.hostName().split("\00");
if (!handledByEvent && proxyLogicEnabled) { // Paper
// if (org.spigotmc.SpigotConfig.bungee) { // Paper - comment out, we check above!