mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
1.19.2 (#8250)
This commit is contained in:
@@ -166,9 +166,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ final ProfilePublicKey.Data forwardedKey = com.destroystokyo.paper.proxy.VelocityProxy.readForwardedKey(buf);
|
||||
+ if (this.profilePublicKeyData == null) {
|
||||
+ try {
|
||||
+ ProfilePublicKey.createValidated(this.server.getServiceSignatureValidator(), this.gameProfile.getId(), forwardedKey);
|
||||
+ ProfilePublicKey.createValidated(this.server.getServiceSignatureValidator(), this.gameProfile.getId(), forwardedKey, Duration.ZERO);
|
||||
+ this.profilePublicKeyData = forwardedKey;
|
||||
+ } catch (CryptException e) {
|
||||
+ } catch (ProfilePublicKey.ValidationException e) {
|
||||
+ this.disconnect("Unable to validate forwarded player key");
|
||||
+ }
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user