remove stray println

main
dignifiedquire 2 years ago
parent f629ab3ccb
commit 7b1545ebd8
  1. 1
      src/interface/android.rs
  2. 2
      src/interface/unix.rs

@ -164,7 +164,6 @@ mod netlink {
ifaces.push(interface); ifaces.push(interface);
} }
RtnlMessage::NewAddress(addr_msg) => { RtnlMessage::NewAddress(addr_msg) => {
println!("NewAddress: {:?}", addr_msg);
if let Some(interface) = if let Some(interface) =
ifaces.iter_mut().find(|i| i.index == addr_msg.header.index) ifaces.iter_mut().find(|i| i.index == addr_msg.header.index)
{ {

@ -149,7 +149,7 @@ pub(super) fn sockaddr_to_network_addr(
let addr = let addr =
sys::sockaddr_to_addr(mem::transmute(sa), mem::size_of::<libc::sockaddr_storage>()); sys::sockaddr_to_addr(mem::transmute(sa), mem::size_of::<libc::sockaddr_storage>());
match dbg!(addr) { match addr {
Ok(SocketAddr::V4(sa)) => (None, Some(IpAddr::V4(*sa.ip()))), Ok(SocketAddr::V4(sa)) => (None, Some(IpAddr::V4(*sa.ip()))),
Ok(SocketAddr::V6(sa)) => (None, Some(IpAddr::V6(*sa.ip()))), Ok(SocketAddr::V6(sa)) => (None, Some(IpAddr::V6(*sa.ip()))),
Err(_) => (None, None), Err(_) => (None, None),

Loading…
Cancel
Save