mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-01-19 15:53:04 +08:00
pass pk to client
This commit is contained in:
parent
d16fb31ecf
commit
41c58538b5
@ -1 +1 @@
|
||||
Subproject commit c86ebe2402ee1f092ce8e44e89368234708a766f
|
||||
Subproject commit 45ef8cd75fcc7c94634cafcefddccd31353fdfac
|
@ -301,8 +301,13 @@ impl RendezvousServer {
|
||||
&addr
|
||||
);
|
||||
let mut msg_out = RendezvousMessage::new();
|
||||
let pk = match self.pm.get(&phs.id).await {
|
||||
Some(peer) => peer.pk,
|
||||
_ => Vec::new(),
|
||||
};
|
||||
msg_out.set_punch_hole_response(PunchHoleResponse {
|
||||
socket_addr: AddrMangle::encode(addr),
|
||||
pk,
|
||||
..Default::default()
|
||||
});
|
||||
if let Some(socket) = socket {
|
||||
|
Loading…
Reference in New Issue
Block a user