Skip to content

iOS: ResolveAsync callbacks not invoked #274

@MarkusHorstmann

Description

@MarkusHorstmann

It looks like the filter condition in ZeroconfNetServiceBrowser.ResolveAsync is wrong, as the key includes the host name (i.e. myhost._linkplay._tcp.local.):

foreach (var result in results.Where(r => r.Services.ContainsKey(protocol)))
{
    callback?.Invoke(result);
}

should be something like:

foreach (var result in results.Where(r => r.Services.Any(key => key.Contains(protocol)))
{
    callback?.Invoke(result);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions