mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
force secure tcp
This commit is contained in:
1 parent
527be17eaf
commit
836950354b
1 file changed
+2
-2
+2
-2
@@ -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