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

Allow ping to specify IPv4, IPv6 or 'any protocol' #33

Closed
ajmas opened this issue Jan 4, 2016 · 4 comments
Closed

Allow ping to specify IPv4, IPv6 or 'any protocol' #33

ajmas opened this issue Jan 4, 2016 · 4 comments

Comments

@ajmas
Copy link

ajmas commented Jan 4, 2016

Allow for ping options to specify the type of ping to be done. For example, somethings like:

opts = {
    ipv4: true,
    ipv6: true
};

ping.sys.probe(host, function(isAlive) {

}, opts);

If something like this can already be done, please could you indicate the correct way in the documentation.

@FlorianWendelborn
Copy link

A workaround could be to use the IPv4 or IPv6 address directly instead of the domain.

@BlessJah
Copy link
Contributor

Not necessarily. Some systems may have separate ping and ping6 commands (it requires further investigation).

@elad
Copy link
Contributor

elad commented Jun 20, 2017

I'd like to have this functionality too. Submitted PR #67.

@ajmas it needs a single toggle (e.g. v6) otherwise you could potentially specify both and I think that's odd behavior.

mondwan added a commit to elad/node-ping that referenced this issue Jul 2, 2017
@mondwan
Copy link
Collaborator

mondwan commented Feb 11, 2018

Close this issue and please give us a hand on #79 so that we can better support the ipv6.

Thanks :)

@mondwan mondwan closed this as completed Feb 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants