rustdesk лет назад: 3
Родитель
Сommit
81d4fb6d6a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      libs/hbb_common/src/udp.rs

+ 2 - 1
libs/hbb_common/src/udp.rs

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