From 644a3e4569f20c39475be1b193647acdeebd486d Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Sat, 2 Mar 2024 00:09:15 +0800 Subject: [PATCH] Use warning while binding the interface --- commons/zenoh-util/src/std_only/net/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }