Skip to content

Commit

Permalink
#43 fix incorrect use of encryption flag
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 3, 2021
1 parent 9c89806 commit cce8fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/js/Protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ XpraProtocol.prototype.process_send_queue = function() {
const payload_size = bdata.length;
// encryption
if(this.cipher_out) {
proto_flags = 0x2;
proto_flags |= 0x2;
const padding_size = this.cipher_out_block_size - (payload_size % this.cipher_out_block_size);
for (let i = 0; i<padding_size; i++) {
bdata += String.fromCharCode(padding_size);
Expand Down

0 comments on commit cce8fa0

Please sign in to comment.