From 793662c60f04a535464cf4e14dbea4df25a6e69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Enrique=20Mu=C3=B1oz=20Mart=C3=ADn?= Date: Wed, 13 Sep 2023 14:18:10 +0200 Subject: [PATCH] Update src/adapters/udp.rs --- src/adapters/udp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/udp.rs b/src/adapters/udp.rs index 05f6072..b658e07 100644 --- a/src/adapters/udp.rs +++ b/src/adapters/udp.rs @@ -394,7 +394,7 @@ impl Local for LocalResource { if let Some(multicast) = multicast { socket.join_multicast_v4(multicast.ip(), &Ipv4Addr::UNSPECIFIED)?; socket.bind(&SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, addr.port()).into())?; - } + } else { socket.bind(&addr.into())?; }