fix: port forward & RDP check

This commit is contained in:
Kingtous
2023-05-15 00:18:40 +08:00
parent 6af19262e8
commit 56f1b75b52
6 changed files with 25 additions and 9 deletions

View File

@@ -88,11 +88,11 @@ impl<T: InvokeUiSession> Session<T> {
}
pub fn is_port_forward(&self) -> bool {
self.lc
let conn_type = self.lc
.read()
.unwrap()
.conn_type
.eq(&ConnType::PORT_FORWARD)
.conn_type;
conn_type == ConnType::PORT_FORWARD || conn_type == ConnType::RDP
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]