From: Sven M. Hallberg Date: Mon, 8 Sep 2014 19:03:48 +0000 (+0200) Subject: set IPv4 source address correctly on Windows X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f26bf67b7cf2caf56e562b480c8ae2b9dabcb72e;p=catta set IPv4 source address correctly on Windows --- diff --git a/src/socket.c b/src/socket.c index 28132db..7e893a0 100644 --- a/src/socket.c +++ b/src/socket.c @@ -544,6 +544,9 @@ int catta_send_dns_packet_ipv4( #ifdef HAVE_IPI_SPEC_DST if (src_address) pkti->ipi_spec_dst.s_addr = src_address->address; +#else + if (src_address) + pkti->ipi_addr.s_addr = src_address->address; #endif } #elif defined(IP_MULTICAST_IF)