Skip to content

Commit

Permalink
Do not fail if using fping6 with -6 flag
Browse files Browse the repository at this point in the history
Mostly for backwards compatability
  • Loading branch information
stromnet committed Jun 25, 2019
1 parent 4fa4c15 commit 6fd4f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ int main(int argc, char** argv)
break;
case '6':
#ifdef IPV6
if (hints_ai_family != AF_UNSPEC) {
if (hints_ai_family != AF_UNSPEC && hints_ai_family != AF_INET6) {
fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
exit(1);
}
Expand Down

0 comments on commit 6fd4f8b

Please sign in to comment.