mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
24 lines
1.3 KiB
Diff
24 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NonSwag <mrminecraft00@gmail.com>
|
|
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 4454944ba851216c8c88fe76ee910a2da52a2292..1c9742ad81f04052d2c3bc18c7636f45b2fc5160 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
|