Do not fail if using fping6 with -6 flag

Mostly for backwards compatability
pull/149/head
Johan Ström 5 years ago
parent 4fa4c15530
commit 6fd4f8bd91

@ -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);
}

Loading…
Cancel
Save