diff --git a/src/main.rs b/src/main.rs index c314177..f8bc5a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,7 +132,7 @@ fn client () -> Result <(), AppError> { println! ("Found {} peers:", peers.len ()); for (mac, ip) in &peers { match mac { - Some (mac) => println! ("{} = {}", MacAddress::new (*mac), ip), + Some (mac) => println! ("{} = {}", MacAddress::new (*mac), ip.ip ()), None => println! (" = {}", ip), } }