Updated to latest version of code.

This commit is contained in:
Greenback
2020-10-30 14:06:11 +00:00
parent 6dc2936d9c
commit ec57eeff2b
4 changed files with 6 additions and 6 deletions

View File

@@ -302,8 +302,8 @@ namespace Rssdp.Infrastructure
foreach (var device in deviceList)
{
var root = device.ToRootDevice();
var source = new IPNetAddress(root.Address, root.SubnetMask);
var destination = new IPNetAddress(remoteEndPoint.Address, root.SubnetMask);
var source = new IPNetAddress(root.Address, root.PrefixLength);
var destination = new IPNetAddress(remoteEndPoint.Address, root.PrefixLength);
if (!_sendOnlyMatchedHost || source.NetworkAddress.Equals(destination.NetworkAddress))
{
SendDeviceSearchResponses(device, remoteEndPoint, receivedOnlocalIpAddress, cancellationToken);