diff options
author | open-trade <[email protected]> | 2021-05-11 19:05:27 +0800 |
---|---|---|
committer | open-trade <[email protected]> | 2021-05-11 19:05:27 +0800 |
commit | 452b993ad6abb3c6e21760a2017533a771ef6b86 (patch) | |
tree | 9bf43d7321b5a7de076592e24589d79237182fd5 /src | |
parent | a5e02a1daf141d1327335d3e7d6111f9ee9812d6 (diff) | |
download | rustdesk-server-452b993ad6abb3c6e21760a2017533a771ef6b86.tar.gz rustdesk-server-452b993ad6abb3c6e21760a2017533a771ef6b86.zip |
make local connection secured
Diffstat (limited to 'src')
-rw-r--r-- | src/rendezvous_server.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rendezvous_server.rs b/src/rendezvous_server.rs index dff17e6..bd603c7 100644 --- a/src/rendezvous_server.rs +++ b/src/rendezvous_server.rs @@ -583,8 +583,13 @@ impl RendezvousServer { &addr ); let mut msg_out = RendezvousMessage::new(); + let pk = match self.pm.get(&la.id).await { + Some(peer) => peer.pk, + _ => Vec::new(), + }; let mut p = PunchHoleResponse { socket_addr: la.local_addr.clone(), + pk, relay_server: la.relay_server, ..Default::default() }; |