mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
bug fix for msgbox, todo: test more for msgbox in file_transfer.tis
This commit is contained in:
@@ -273,6 +273,7 @@ async fn test_nat_type_() -> ResultType<bool> {
|
||||
)
|
||||
.await?;
|
||||
if Config::get_network_type() == NetworkType::Direct {
|
||||
// to-do: should set NatType::UNKNOWN for proxy
|
||||
addr = socket.local_addr();
|
||||
}
|
||||
socket.send(&msg_out).await?;
|
||||
|
||||
@@ -261,8 +261,8 @@ function msgbox_(type, title, text, callback, height, width, retry, contentStyle
|
||||
} else if (res == "!alive") {
|
||||
// do nothing
|
||||
} else if (res.type == "input-password") {
|
||||
if (!is_port_forward) msgbox("connecting", "Connecting...", "Logging in...");
|
||||
handler.login(res.password, res.remember);
|
||||
if (!is_port_forward) msgbox("connecting", "Connecting...", "Logging in...");
|
||||
} else if (res.reconnect) {
|
||||
if (!is_port_forward) connecting();
|
||||
handler.reconnect();
|
||||
|
||||
Reference in New Issue
Block a user