aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNonSwag <[email protected]>2023-11-05 00:12:47 +0100
committerGitHub <[email protected]>2023-11-05 00:12:47 +0100
commit2553f30153b4f8858456ddff8a4b713938fea1cd (patch)
treed4d3724133fa7b939b9559a68e60ea51eff51735
parent75d04e9b0473c2d0f1604a158b4484573f5a5aed (diff)
downloadPaper-2553f30153b4f8858456ddff8a4b713938fea1cd.tar.gz
Paper-2553f30153b4f8858456ddff8a4b713938fea1cd.zip
fix secure profile with proxy online mode (#9700)
-rw-r--r--patches/server/1044-fix-secure-profile-with-proxy-online-mode.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/1044-fix-secure-profile-with-proxy-online-mode.patch b/patches/server/1044-fix-secure-profile-with-proxy-online-mode.patch
new file mode 100644
index 0000000000..d4821bb7bf
--- /dev/null
+++ b/patches/server/1044-fix-secure-profile-with-proxy-online-mode.patch
@@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: NonSwag <[email protected]>
+Date: Sun, 8 Oct 2023 09:55:56 +0200
+Subject: [PATCH] fix secure profile with proxy online mode
+
+
+diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
+index 2b5d82fbf4e7ec32d0c53dd3e8207b1dba708bbd..cf605aa56adf7f80d3b409f60a92a5ca7ae8fd07 100644
+--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
++++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
+@@ -637,8 +637,11 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
+ @Override
+ public boolean enforceSecureProfile() {
+ DedicatedServerProperties dedicatedserverproperties = this.getProperties();
+-
+- return dedicatedserverproperties.enforceSecureProfile && dedicatedserverproperties.onlineMode && this.services.profileKeySignatureValidator() != null;
++ // Paper start - fix secure profile with proxy online mode
++ return dedicatedserverproperties.enforceSecureProfile
++ && io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()
++ && this.services.profileKeySignatureValidator() != null;
++ // Paper end
+ }
+
+ @Override