make local connection secured

This commit is contained in:
rustdesk 2021-05-11 19:02:18 +08:00
parent 1ce9d78c81
commit 539cf03ad5
2 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ message LocalAddr {
bytes socket_addr = 1;
bytes local_addr = 2;
string relay_server = 3;
string id = 4;
}
message RendezvousMessage {

View File

@ -302,6 +302,7 @@ impl RendezvousMediator {
relay_server = fla.relay_server;
}
msg_out.set_local_addr(LocalAddr {
id: Config::get_id(),
socket_addr: AddrMangle::encode(peer_addr),
local_addr: AddrMangle::encode(local_addr),
relay_server,