mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 12:29:04 +08:00
bug fix for msgbox, todo: test more for msgbox in file_transfer.tis
This commit is contained in:
parent
6767dda246
commit
b24e16d6c1
@ -4,7 +4,7 @@ use crate::{
|
||||
udp::FramedSocket,
|
||||
ResultType,
|
||||
};
|
||||
use anyhow::{bail, Context};
|
||||
use anyhow::Context;
|
||||
use std::net::SocketAddr;
|
||||
use tokio::net::ToSocketAddrs;
|
||||
use tokio_socks::{IntoTargetAddr, TargetAddr};
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user