diff --git a/src/fping.c b/src/fping.c index 4a0c60a..9650db9 100644 --- a/src/fping.c +++ b/src/fping.c @@ -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); }