Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ping to use ping6 when ip is type ipv6 #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brunoselvacj
Copy link

No description provided.

@@ -150,10 +150,9 @@ impl Target for IcmpTarget {
// Using ping seems to be the easiest way to send ICMP packets without root privileges
let available_via_ping = |addr: IpAddr| {
if addr.is_ipv6() {
Command::new("ping")
Command::new("ping6")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As much as I like the change ping6 is neither available on my windows and on my linux maschine. Both support ping with "-6". You should check whats available before executing it.

@Simon-Brummer
Copy link

Sorry for not noticing you PR for some time. Github just overwhelms me with messages and I haven't touched the codebase in ages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants