From 8f4c038e2369f16254b5d92da84e2251eebedd7e Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 27 Oct 2021 14:47:01 -0700 Subject: [PATCH] fix ifdef wasn't running IPv6 temporary address detection for binding --- osdep/Binder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index f02900325..73273d50d 100644 --- a/osdep/Binder.hpp +++ b/osdep/Binder.hpp @@ -320,7 +320,7 @@ class Binder { while (ifa) { if ((ifa->ifa_name) && (ifa->ifa_addr)) { InetAddress ip = *(ifa->ifa_addr); -#if defined(__unix__) && !defined(__LINUX__) +#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) // Check if the address is an IPv6 Temporary Address, macOS/BSD version if (ifa->ifa_addr->sa_family == AF_INET6) { struct sockaddr_in6* sa6 = (struct sockaddr_in6*)ifa->ifa_addr;