Skip to content

Commit

Permalink
Also search services on loopback; Ignore DNS authorative bit (per RFC…
Browse files Browse the repository at this point in the history
…6762)
  • Loading branch information
richardschneider authored and tmds committed Jan 31, 2018
1 parent 54cff66 commit 8b807d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Tmds.MDns/NetworkInterfaceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ private void OnReceive(IAsyncResult ar)
}
}
}
}
if (header.IsResponse && header.IsNoError && header.IsAuthorativeAnswer)
}
if (header.IsResponse && header.IsNoError)
{
for (int i = 0; i < header.QuestionCount; i++)
{
Expand Down
4 changes: 0 additions & 4 deletions src/Tmds.MDns/ServiceBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ private void CheckNetworkInterfaceStatuses(Dictionary<int, NetworkInterfaceHandl
NetworkInterface[] networkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface networkInterface in networkInterfaces)
{
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Loopback)
{
continue;
}
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Tunnel)
{
continue;
Expand Down

0 comments on commit 8b807d8

Please sign in to comment.