mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-02-28 00:53:11 +08:00
add system info
This commit is contained in:
1047
Cargo.lock
generated
1047
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
Submodule libs/hbb_common updated: 9223a153ae...1ba7984881
@@ -185,6 +185,7 @@ impl RendezvousServer {
|
|||||||
if self.pm.is_in_memory(&id) {
|
if self.pm.is_in_memory(&id) {
|
||||||
self.handle_udp_punch_hole_request(addr, id).await?;
|
self.handle_udp_punch_hole_request(addr, id).await?;
|
||||||
} else {
|
} else {
|
||||||
|
// not in memory, fetch from db with spawn in case blocking me
|
||||||
let mut me = self.clone();
|
let mut me = self.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
allow_err!(me.handle_udp_punch_hole_request(addr, id).await);
|
allow_err!(me.handle_udp_punch_hole_request(addr, id).await);
|
||||||
@@ -197,6 +198,9 @@ impl RendezvousServer {
|
|||||||
Some(rendezvous_message::Union::local_addr(la)) => {
|
Some(rendezvous_message::Union::local_addr(la)) => {
|
||||||
self.handle_local_addr(&la, addr, Some(socket)).await?;
|
self.handle_local_addr(&la, addr, Some(socket)).await?;
|
||||||
}
|
}
|
||||||
|
Some(rendezvous_message::Union::system_info(info)) => {
|
||||||
|
log::info!("{}", info.value);
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user