Skip to content

Commit

Permalink
sync Tue Dec 12 14:00:46 CET 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Dec 12, 2023
1 parent bf0578d commit 0628160
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/killswitch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ pub fn default() -> Result<String> {
}

println!(
" MAC Address: {:>width$}",
" MAC Address: {}",
interface
.mac_addr
.map_or("N/A".to_string(), |m| format!("{}", m)),
width = 8
);

println!(
" Gateway: {}",
interface
.gateway
.map_or("N/A".to_string(), |m| format!("{:#?}", m.ip_addr)),
);

println!(" Type: {:?}", interface.if_type);
}

println!("");
Expand Down

0 comments on commit 0628160

Please sign in to comment.