mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-29 08:01:03 +03:00
force secure tcp
This commit is contained in:
@@ -283,7 +283,7 @@ impl Client {
|
||||
|
||||
if !key.is_empty() && !token.is_empty() {
|
||||
// mainly for the security of token
|
||||
allow_err!(secure_tcp(&mut socket, key).await);
|
||||
secure_tcp(&mut socket, key).await?;
|
||||
}
|
||||
|
||||
let start = std::time::Instant::now();
|
||||
@@ -599,7 +599,7 @@ impl Client {
|
||||
|
||||
if !key.is_empty() && !token.is_empty() {
|
||||
// mainly for the security of token
|
||||
allow_err!(secure_tcp(&mut socket, key).await);
|
||||
secure_tcp(&mut socket, key).await?;
|
||||
}
|
||||
|
||||
ipv4 = socket.local_addr().is_ipv4();
|
||||
|
||||
Reference in New Issue
Block a user