From 9dd0bd604cf9a19384f4c4e537784d629ff0e557 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 29 Jun 2016 15:37:37 -0400 Subject: [PATCH] fix --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index ca21f3c3..bcbcbe23 100644 --- a/util.cpp +++ b/util.cpp @@ -438,7 +438,7 @@ namespace net addr[sz-1] = 0; socklen_t sl = (ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in)); // this probably won't screw up (right?) - inet_ntop(af, cur->ifa_addr, addr, sl); + inet_ntop(af, cur->ifa_addr->sa_data, addr, sl); std::string cur_ifaddr(addr); freeifaddrs(addrs); return boost::asio::ip::address::from_string(cur_ifaddr);