mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-26 12:43:09 +00:00
Change socket is verified check
This commit is contained in:
2 files changed
+4
-7
No files matched your search
+1
-1
@@ -129,7 +129,7 @@ public class WebEditorSocketListener extends WebSocketListener {
|
||||
|
||||
// check signature to ensure the message is from the connected editor
|
||||
PublicKey remotePublicKey = this.socket.getRemotePublicKey();
|
||||
boolean verified = remotePublicKey == null || CryptographyUtils.verify(remotePublicKey, innerMsg, signature);
|
||||
boolean verified = remotePublicKey != null && CryptographyUtils.verify(remotePublicKey, innerMsg, signature);
|
||||
|
||||
// parse the inner message
|
||||
JsonObject msg = GsonProvider.parser().parse(innerMsg).getAsJsonObject();
|
||||
|
||||
Reference in new issue
Block a user