Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Fixed cloning copy with EncryptedPrefixLengthProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
job79 committed Jun 27, 2020
1 parent 21cf043 commit 8cb976b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public override byte[] CreateMessage(params byte[][] data)
/// Return new instance of protocol
/// </summary>
/// <returns>new object</returns>
public override object Clone() => new EncryptedPrefixLengthProtocol(Encrypter);
public override object Clone() => new EncryptedPrefixLengthProtocol(new EasyEncrypt(key: Encrypter.GetKey()));

/// <summary>
/// Handle received data, trigger event and set new bufferSize determined by the header
Expand Down

0 comments on commit 8cb976b

Please sign in to comment.