From 5d84ad4c94a11c7ea45b8ecb983bf2c585f1a076 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Fri, 17 Feb 2017 12:24:38 +0100 Subject: [PATCH] avoid duplicate hosts with -m --- src/fping.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fping.c b/src/fping.c index c3e7a76..2a885e4 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2238,6 +2238,7 @@ void add_name(char* name) } #endif else { + hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = 0; } ret_ga = getaddrinfo(name, NULL, &hints, &res0); -- 2.43.0