Update host list format to be

<ip_address>,<name>
to make end user display and interpretation easier
This commit is contained in:
2025-04-21 08:57:34 -04:00
parent 11618c0d0a
commit da10ec72f8
10 changed files with 165 additions and 98 deletions
+3 -1
View File
@@ -1,8 +1,9 @@
use std::net::Ipv4Addr;
use std::time::SystemTime;
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct TargetState {
pub name: String,
pub target: Ipv4Addr,
pub alive: bool,
pub last_rtt: u32,
@@ -12,6 +13,7 @@ pub struct TargetState {
impl Default for TargetState {
fn default() -> Self {
TargetState {
name: "Unknown Host".to_string(),
target: Ipv4Addr::new(127, 0, 0, 1),
alive: false,
last_rtt: 0,