Skip to content

Commit

Permalink
chore: CI does not do IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Aug 25, 2019
1 parent b2f6bb3 commit 153d97c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/IPAddressExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class IPAddressExtensions
/// An IP Addresses.
/// </param>
/// <returns>
/// The subnet mask; ror example "127.0.0.1" returns "255.0.0.0".
/// The subnet mask; for example "127.0.0.1" returns "255.0.0.0".
/// Or <b>null</b> When <paramref name="address"/> does not belong to
/// the localhost.
/// s</returns>
Expand Down
9 changes: 5 additions & 4 deletions src/ServiceDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ void OnQuery(object sender, MessageEventArgs e)
{
;
}
// Only return address records that the querier can reach.
response.Answers.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));
response.AuthorityRecords.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));
response.AdditionalRecords.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));

// Only return address records that the querier can reach.
response.Answers.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));
response.AuthorityRecords.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));
response.AdditionalRecords.RemoveAll(rr => IsUnreachable(rr, e.RemoteEndPoint));

if (QU)
{
Expand Down
1 change: 1 addition & 0 deletions test/IPAddressExtensionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public void SubnetMask_Ipv4Loopback()
}

[TestMethod]
[TestCategory("IPv6")]
public void SubnetMask_Ipv6Loopback()
{
var mask = IPAddress.IPv6Loopback.GetSubnetMask();
Expand Down

0 comments on commit 153d97c

Please sign in to comment.