mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 06:51:28 +03:00
fix connect timeout of udp_nat_connect and udp_nat_listen (#12447)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -834,7 +834,7 @@ async fn udp_nat_listen(
|
||||
let res = crate::punch_udp(socket.clone(), true).await?;
|
||||
let stream = crate::kcp_stream::KcpStream::accept(
|
||||
socket,
|
||||
Duration::from_secs(CONNECT_TIMEOUT as _),
|
||||
Duration::from_millis(CONNECT_TIMEOUT as _),
|
||||
res,
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user