Skip to content

Commit

Permalink
feat: Set timeout parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Aug 2, 2024
1 parent 6fb6c96 commit b2f07c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-tauri/src/platform_specific/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ fn run_tracert(target_ip: &str) -> Result<usize, String> {
let output = match Command::new("tracert")
.arg("-4") // Force IPv4
.arg("-d") // Prevent resolving intermediate IP addresses
.arg("-w") // Set timeout to 1 second
.arg("1000")
.arg("-h") // Set max hop count
.arg("5")
.arg(target_ip)
Expand Down

0 comments on commit b2f07c5

Please sign in to comment.