Skip to content

Commit

Permalink
Allow -4 option to be given multiple times when IPv6 is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
normanr committed Mar 1, 2021
1 parent eac2034 commit e432f46
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 @@ -546,7 +546,7 @@ int main(int argc, char** argv)
switch (c) {
case '4':
#ifdef IPV6
if (hints_ai_family != AF_UNSPEC) {
if (hints_ai_family != AF_UNSPEC && hints_ai_family != AF_INET) {
fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
exit(1);
}
Expand Down

0 comments on commit e432f46

Please sign in to comment.