Merge pull request #149 from stromnet/inet6-too-strict-check

Do not fail if using fping6 with -6 flag
pull/151/head
David Schweikert 6 years ago committed by GitHub
commit f8b327923e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -435,7 +435,7 @@ int main(int argc, char** argv)
break; break;
case '6': case '6':
#ifdef IPV6 #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); fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
exit(1); exit(1);
} }

Loading…
Cancel
Save