An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix file transfer affect codec selection
21pages90f0f27fcaf3
diff --git a/src/server/connection.rs b/src/server/connection.rsindex 4b6b92f2b..2723b0834 100644--- a/src/server/connection.rs+++ b/src/server/connection.rs@@ -1330,10 +1330,8 @@ impl Connection {return Config::get_option(enable_prefix_option).is_empty();}- async fn handle_login_request_without_validation(&mut self, lr: &LoginRequest) {- self.lr = lr.clone();+ fn update_codec_on_login(&self, lr: &LoginRequest) {if let Some(o) = lr.option.as_ref() {- self.options_in_login = Some(o.clone());if let Some(q) = o.supported_decoding.clone().take() {scrap::codec::Encoder::update(self.inner.id(),@@ -1351,6 +1349,16 @@ impl Connection {scrap::codec::EncodingUpdate::NewOnlyVP9,);}+ }++ async fn handle_login_request_without_validation(&mut self, lr: &LoginRequest) {+ self.lr = lr.clone();+ if let Some(o) = lr.option.as_ref() {+ self.options_in_login = Some(o.clone());+ }+ if lr.union.is_none() {+ self.update_codec_on_login(&lr);+ }self.video_ack_required = lr.video_ack_required;}