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
+2 -3
View File
@@ -37,7 +37,7 @@ impl Manager {
#[cfg(any(target_os="windows"))] {
result = Command::new("c:/windows/system32/ping.exe").arg(request.target.to_string())
.arg("-n 1")
.arg("-w 10")
.arg(format!("-w {}", crate::SECONDS_BETWEEN_PING))
.arg("-4")
.output().unwrap().status.code().unwrap_or(255);
success = result == WIN_PING_SUCCESS as i32;;
@@ -46,7 +46,7 @@ impl Manager {
result = Command::new("/usr/bin/ping").arg(request.target.to_string())
.arg("-c 1")
.arg("-4")
.arg("-w 10")
.arg(format!("-w {}", SECONDS_BETWEEN_PING))
.arg("-W 1")
.output().unwrap().status.code().unwrap_or(255);
success = result == LIN_PING_SUCCESS as i32;
@@ -64,5 +64,4 @@ impl Manager {
// println!("Attempt for for {}", local_request.target);
});
}
}