Skip to content

Commit 78d7c44

Browse files
committed
LocalIP (BSD): fix building
1 parent a84c4dc commit 78d7c44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/detection/localip/localip_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static bool isIPv6AddressPreferred(const char* ifname, struct sockaddr_in6* addr
157157
if (ioctl(sockfd, SIOCGIFAFLAG_IN6, &ifr6) != 0)
158158
return true;
159159

160-
return !(ifr6.ifr_flags & IN6_IFF_DEPRECATED) && !(ifr6.ifr_flags & IN6_IFF_TEMPORARY);
160+
return !(ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DEPRECATED) && !(ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_TEMPORARY);
161161
#elif __linux__
162162
FF_UNUSED(ifname);
163163

0 commit comments

Comments
 (0)