Skip to content
Snippets Groups Projects
Commit 322268a9 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Implement address lookup in check_ping_multiaddr.

This adds lookup of IP addresses from names of the hostnames/addresses
given on the command line, and errors out if the address cannot be
resolved.  By default, only the "first" address of each host will be
used; even if both --ipv4 and --ipv6 are specified, only one address,
family (the one the resolver library prefers) will be collected.
However, giving the -A/--all-addresses option will cause all addresses
(of the requested address families) for each hostname to be used.

We still don't actually do anything with the addresses yet, except
print them if the new -d/--debug option is used.
parent f139bd20
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment