fix zeroconf discovery on iOS

This commit is contained in:
Michael Zanetti 2018-09-25 14:25:57 +02:00
parent d0825a5a34
commit dd6c73fb86

View File

@ -52,8 +52,8 @@ void ZeroconfDiscovery::serviceEntryAdded(const QZeroConfService &entry)
// Skip entries that don't have an ip address at all for some reason
return;
}
if (entry.ipv6().toString().startsWith("fe80")) {
// Skip link-local IPv6 addresses
if (entry.ip().isNull() && entry.ipv6().toString().startsWith("fe80")) {
// Skip link-local-IPv6-only results
return;
}