From 6fd4f8bd91abc43f80078bdd0084cb6d2b1de7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Str=C3=B6m?= Date: Tue, 25 Jun 2019 14:03:14 +0200 Subject: [PATCH] Do not fail if using fping6 with -6 flag Mostly for backwards compatability --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }