mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-04-13 11:16:03 +00:00
INVALID_ID_FORMAT
This commit is contained in:
@@ -392,7 +392,9 @@ impl RendezvousServer {
|
||||
}
|
||||
let id = rk.id;
|
||||
let mut res = register_pk_response::Result::OK;
|
||||
if let Some(peer) = self.pm.get(&id).await {
|
||||
if !hbb_common::is_valid_custom_id(&id) {
|
||||
res = register_pk_response::Result::INVALID_ID_FORMAT;
|
||||
} else if let Some(peer) = self.pm.get(&id).await {
|
||||
if peer.uuid != rk.uuid {
|
||||
log::warn!(
|
||||
"Peer {} uuid mismatch: {:?} vs {:?}",
|
||||
|
||||
Reference in New Issue
Block a user