Skip to content

Commit

Permalink
check for rencodeplus as early as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 1, 2024
1 parent 1242ac9 commit a0256fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2467,6 +2467,10 @@ class XpraClient {
this.cancel_hello_timer();
const hello = packet[1];
this.clog("received hello capabilities", hello);
if (!hello["rencodeplus"]) {
throw "no common packet encoders, 'rencodeplus' is required by this client";
}

this.server_display = hello["display"] || "";
this.server_platform = hello["platform"] || "";
this.server_remote_logging = hello["remote-logging.multi-line"];
Expand Down Expand Up @@ -2504,9 +2508,6 @@ class XpraClient {
console.info("cipher out caps=", JSON.stringify(this.cipher_out_caps));
this.protocol.set_cipher_out(this.cipher_out_caps, this.encryption_key);
}
if (!hello["rencodeplus"]) {
throw "no common packet encoders, 'rencodeplus' is required by this client";
}

const version = Utilities.s(hello["version"]);
try {
Expand Down

0 comments on commit a0256fc

Please # to comment.