From d9f86182e8d97046fa6197b76e6b92576d28a9ab Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Fri, 10 Feb 2017 09:43:21 +0100 Subject: [PATCH] fix setting of IPv4 source address --- src/fping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fping.c b/src/fping.c index 6e5da7d..82a5880 100644 --- a/src/fping.c +++ b/src/fping.c @@ -858,11 +858,10 @@ int main(int argc, char** argv) exit(num_noaddress ? 2 : 1); } -#ifndef IPV6 if (src_addr_set) { socket_set_src_addr_ipv4(socket4, &src_addr); } -#else +#ifdef IPV6 if (src_addr6_set) { socket_set_src_addr_ipv6(socket6, &src_addr6); }