diff options
author | open-trade <[email protected]> | 2020-06-21 14:31:52 +0800 |
---|---|---|
committer | open-trade <[email protected]> | 2020-06-21 14:31:52 +0800 |
commit | 135d8555057ae041d4ef97ee5b3c4d282e8f6e89 (patch) | |
tree | cfc9f6c29e344cbd80b0e4de4c2ad39dc8e00df4 /src | |
parent | 2424dcad69abfa8b2ac3cb2dbf7f8f989478a680 (diff) | |
download | rustdesk-server-135d8555057ae041d4ef97ee5b3c4d282e8f6e89.tar.gz rustdesk-server-135d8555057ae041d4ef97ee5b3c4d282e8f6e89.zip |
add system info
Diffstat (limited to 'src')
-rw-r--r-- | src/rendezvous_server.rs | 4 |
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); + } _ => {} } } |