Closed qdm12 closed 1 year ago
Would you be interested in working on a PR for this?
@CHTJonas Done in #185 although I'm not sure how to go around testing it without running as root on the CI (to use icmp packets to localhost). Would you have any idea?
I also did #184 since I felt like reading the code and fix lint errors 😉 Take it or leave it!
You can get this functionality today with no upstream changes if needed: https://github.com/go-ping/ping/pull/185#issuecomment-1146671786
It would be easier to use rather than using the
.Stop
method with some select block to support contexts. Thanks!For reference, that's what I use for now: