This commit is contained in:
rustdesk 2023-01-07 00:50:48 +08:00
parent a766aaf165
commit 81d4fb6d6a

View File

@ -54,7 +54,8 @@ impl FramedSocket {
reuse: bool,
buf_size: usize,
) -> ResultType<Self> {
let addr = lookup_host(&addr).await?
let addr = lookup_host(&addr)
.await?
.next()
.context("could not resolve to any address")?;
Ok(Self::Direct(UdpFramed::new(