mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 06:01:00 +03:00
feat: remote printer (#11231)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -272,6 +272,8 @@ pub enum Data {
|
||||
HwCodecConfig(Option<String>),
|
||||
RemoveTrustedDevices(Vec<Bytes>),
|
||||
ClearTrustedDevices,
|
||||
#[cfg(all(target_os = "windows", feature = "flutter"))]
|
||||
PrinterData(Vec<u8>),
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
@@ -461,7 +463,7 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
.lock()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.filter(|x| x.1 == crate::server::AuthConnType::Remote)
|
||||
.filter(|x| x.conn_type == crate::server::AuthConnType::Remote)
|
||||
.count();
|
||||
allow_err!(stream.send(&Data::VideoConnCount(Some(n))).await);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user