diff --git a/commons/zenoh-util/src/std_only/net/mod.rs b/commons/zenoh-util/src/std_only/net/mod.rs index 508185d362..f79829129c 100644 --- a/commons/zenoh-util/src/std_only/net/mod.rs +++ b/commons/zenoh-util/src/std_only/net/mod.rs @@ -437,10 +437,10 @@ pub fn set_bind_to_device_udp_socket(socket: &UdpSocket, iface: Option<&str>) -> #[cfg(any(target_os = "macos", target_os = "windows"))] pub fn set_bind_to_device_tcp_socket(socket: &TcpSocket, iface: Option<&str>) -> ZResult<()> { - bail!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); + log::warn!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); } #[cfg(any(target_os = "macos", target_os = "windows"))] pub fn set_bind_to_device_udp_socket(socket: &UdpSocket, iface: Option<&str>) -> ZResult<()> { - bail!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); + log::warn!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); }