mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 06:01:30 +03:00
refactor cliprdr, not tested on windows yet
This commit is contained in:
@@ -84,7 +84,7 @@ impl FramedSocket {
|
||||
let _ = match self {
|
||||
Self::Direct(f) => match addr {
|
||||
TargetAddr::Ip(addr) => f.send((send_data, addr)).await?,
|
||||
_ => unreachable!(),
|
||||
_ => {}
|
||||
},
|
||||
Self::ProxySocks(f) => f.send((send_data, addr)).await?,
|
||||
};
|
||||
@@ -103,7 +103,7 @@ impl FramedSocket {
|
||||
let _ = match self {
|
||||
Self::Direct(f) => match addr {
|
||||
TargetAddr::Ip(addr) => f.send((Bytes::from(msg), addr)).await?,
|
||||
_ => unreachable!(),
|
||||
_ => {}
|
||||
},
|
||||
Self::ProxySocks(f) => f.send((Bytes::from(msg), addr)).await?,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user