|
|
|
@ -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);
|
|
|
|
|