chore(rust): use the bound socket address in println
@@ -41,7 +41,10 @@ pub mod transport {
AddressType::Udp,
tx.clone(),
)));
- println!("created udp transport bound to {}", local_address);
+ if let Ok(addr) = socket.local_addr() {
+ println!("created udp transport bound to {}", addr);
+ }
+
Ok(UdpTransport {
socket,
rx,
