Skip to content

Commit

Permalink
Set ping TTL to 64 (#319)
Browse files Browse the repository at this point in the history
The default TTL is 0, ie pinging any host that isn't on the local network will fail - with this, it succeeds
  • Loading branch information
shish authored Nov 17, 2023
1 parent 494bb98 commit ca1ae02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ impl EspPing {
task_stack_size: 4096,
task_prio: 2,
interface: self.0,
ttl: 64,
..Default::default()
};

Expand Down

0 comments on commit ca1ae02

Please sign in to comment.