aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpCommunicationsServer.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-03-08 22:20:43 +0100
committerBond_009 <bond.009@outlook.com>2022-03-08 22:20:43 +0100
commit1d018c557599a544ad2f8193ce7cc0a6a6f1260a (patch)
treecb493215dd8bb83e0ecf022224e6f8f6342fa5d1 /RSSDP/SsdpCommunicationsServer.cs
parent03f1eff21abf75d88d15df05b6a841e48943c7ef (diff)
SocketFactory: Remove redundant code
ExclusiveAddressUse should be false by default afaik
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
-rw-r--r--RSSDP/SsdpCommunicationsServer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index a66b70ac1..6e4f5634d 100644
--- a/RSSDP/SsdpCommunicationsServer.cs
+++ b/RSSDP/SsdpCommunicationsServer.cs
@@ -338,7 +338,7 @@ namespace Rssdp.Infrastructure
private ISocket ListenForBroadcastsAsync()
{
- var socket = _SocketFactory.CreateUdpMulticastSocket(SsdpConstants.MulticastLocalAdminAddress, _MulticastTtl, SsdpConstants.MulticastPort);
+ var socket = _SocketFactory.CreateUdpMulticastSocket(IPAddress.Parse(SsdpConstants.MulticastLocalAdminAddress), _MulticastTtl, SsdpConstants.MulticastPort);
_ = ListenToSocketInternal(socket);
return socket;