Don't consider ULAs global addresses

This commit is contained in:
Cameron Gutman 2019-07-14 15:07:04 -07:00
parent 9f56fdfbb9
commit 2f7ac67cb0

View File

@ -202,6 +202,12 @@ public class MdnsDiscoveryAgent implements ServiceListener {
LimeLog.info("Ignoring Teredo address: "+addr.getHostAddress());
continue;
}
// fc00::/7
else if ((addrBytes[0] & 0xfe) == 0xfc) {
// ULAs aren't global
LimeLog.info("Ignoring ULA: "+addr.getHostAddress());
continue;
}
// Compare the final 64-bit interface identifier and skip the address
// if it doesn't match our link-local address.