mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-28 16:49:48 +02:00
Change socket is verified check
This commit is contained in:
@@ -129,7 +129,7 @@ public class WebEditorSocketListener extends WebSocketListener {
|
|||||||
|
|
||||||
// check signature to ensure the message is from the connected editor
|
// check signature to ensure the message is from the connected editor
|
||||||
PublicKey remotePublicKey = this.socket.getRemotePublicKey();
|
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
|
// parse the inner message
|
||||||
JsonObject msg = GsonProvider.parser().parse(innerMsg).getAsJsonObject();
|
JsonObject msg = GsonProvider.parser().parse(innerMsg).getAsJsonObject();
|
||||||
|
@@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCach
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.github.johnrengelman.shadow'
|
id 'com.github.johnrengelman.shadow'
|
||||||
|
id 'application'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -10,12 +11,8 @@ dependencies {
|
|||||||
implementation project(':standalone:app')
|
implementation project(':standalone:app')
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
application {
|
||||||
manifest {
|
mainClass = 'me.lucko.luckperms.standalone.loader.StandaloneLoader'
|
||||||
attributes(
|
|
||||||
'Main-Class': 'me.lucko.luckperms.standalone.loader.StandaloneLoader'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
Reference in New Issue
Block a user