aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authoropen-trade <[email protected]>2020-06-21 14:31:52 +0800
committeropen-trade <[email protected]>2020-06-21 14:31:52 +0800
commit135d8555057ae041d4ef97ee5b3c4d282e8f6e89 (patch)
treecfc9f6c29e344cbd80b0e4de4c2ad39dc8e00df4 /src
parent2424dcad69abfa8b2ac3cb2dbf7f8f989478a680 (diff)
downloadrustdesk-server-135d8555057ae041d4ef97ee5b3c4d282e8f6e89.tar.gz
rustdesk-server-135d8555057ae041d4ef97ee5b3c4d282e8f6e89.zip
add system info
Diffstat (limited to 'src')
-rw-r--r--src/rendezvous_server.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rendezvous_server.rs b/src/rendezvous_server.rs
index 795226e..3c6dda3 100644
--- a/src/rendezvous_server.rs
+++ b/src/rendezvous_server.rs
@@ -185,6 +185,7 @@ impl RendezvousServer {
if self.pm.is_in_memory(&id) {
self.handle_udp_punch_hole_request(addr, id).await?;
} else {
+ // not in memory, fetch from db with spawn in case blocking me
let mut me = self.clone();
tokio::spawn(async move {
allow_err!(me.handle_udp_punch_hole_request(addr, id).await);
@@ -197,6 +198,9 @@ impl RendezvousServer {
Some(rendezvous_message::Union::local_addr(la)) => {
self.handle_local_addr(&la, addr, Some(socket)).await?;
}
+ Some(rendezvous_message::Union::system_info(info)) => {
+ log::info!("{}", info.value);
+ }
_ => {}
}
}