fix port forward 2fa (#6956)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-01-22 19:57:23 +08:00
committed by GitHub
parent ed24f432c3
commit 2e16a2be56
2 changed files with 9 additions and 8 deletions

View File

@@ -578,6 +578,9 @@ impl Connection {
if !conn.on_message(msg_in).await {
break;
}
if conn.port_forward_socket.is_some() && conn.authorized {
break;
}
}
}
}
@@ -1627,9 +1630,6 @@ impl Connection {
self.linux_headless_handle.wait_desktop_cm_ready().await;
self.send_logon_response().await;
self.try_start_cm(lr.my_id.clone(), lr.my_name.clone(), self.authorized);
if self.port_forward_socket.is_some() {
return false;
}
} else {
self.send_login_error(err_msg).await;
}
@@ -1667,9 +1667,6 @@ impl Connection {
self.linux_headless_handle.wait_desktop_cm_ready().await;
self.send_logon_response().await;
self.try_start_cm(lr.my_id, lr.my_name, self.authorized);
if self.port_forward_socket.is_some() {
return false;
}
} else {
self.send_login_error(err_msg).await;
}