propagates the hash-handler continuation result through both connection loops, allowing incoming-only rejection to terminate the connection while preserving existing login flows.

This commit is contained in:
rustdesk
2026-08-10 16:45:27 +08:00
parent d407db9fae
commit 947cb3f17b
4 changed files with 17 additions and 10 deletions

View File

@@ -1353,9 +1353,13 @@ impl<T: InvokeUiSession> Remote<T> {
}
}
Some(message::Union::Hash(hash)) => {
self.handler
if !self
.handler
.handle_hash(&self.handler.password.clone(), hash, peer)
.await;
.await
{
return false;
}
}
Some(message::Union::LoginResponse(lr)) => match lr.union {
Some(login_response::Union::Error(err)) => {