diff --git a/src/lib/dnssd/IPAddressSorter.cpp b/src/lib/dnssd/IPAddressSorter.cpp index 36bd2b109b3ab2..18147c4e2e9ba4 100644 --- a/src/lib/dnssd/IPAddressSorter.cpp +++ b/src/lib/dnssd/IPAddressSorter.cpp @@ -45,12 +45,10 @@ IpScore ScoreIpAddress(const Inet::IPAddress & ip, Inet::InterfaceId interfaceId { if (ip.IsIPv6()) { -#ifdef __APPLE__ if (ip.IsIPv6LinkLocal()) { return IpScore::kLinkLocal; } -#endif // __APPLE__ if (interfaceId.MatchLocalIPv6Subnet(ip)) { @@ -73,13 +71,6 @@ IpScore ScoreIpAddress(const Inet::IPAddress & ip, Inet::InterfaceId interfaceId return IpScore::kUniqueLocal; } -#ifndef __APPLE__ - if (ip.IsIPv6LinkLocal()) - { - return IpScore::kLinkLocal; - } -#endif // __APPLE__ - return IpScore::kOtherIpv6; }