Skip to content

Commit

Permalink
#2799 for now, just disable lz4 when encryption is enabled
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26619 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 4, 2020
1 parent 66e8b07 commit afa7688
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,13 +1123,15 @@ XpraClient.prototype._make_hello_base = function() {
"connection-data" : ci,
});
}
const LZ4 = require('lz4');
if(LZ4) {
this._update_capabilities({
"lz4" : true,
"lz4.js.version" : LZ4.version,
"encoding.rgb_lz4" : true,
});
if (!this.encryption) {
const LZ4 = require('lz4');
if(LZ4) {
this._update_capabilities({
"lz4" : true,
"lz4.js.version" : LZ4.version,
"encoding.rgb_lz4" : true,
});
}
}

if(typeof BrotliDecode != "undefined" && !Utilities.isIE()) {
Expand Down

0 comments on commit afa7688

Please sign in to comment.