aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpCommunicationsServer.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-03-10 14:19:08 -0700
committerGitHub <noreply@github.com>2022-03-10 14:19:08 -0700
commita5ffde0e9c120c9addc5a4953760bece919ff677 (patch)
tree3226eb8a7354545b39efbd7c5559d674798e5881 /RSSDP/SsdpCommunicationsServer.cs
parent96de01ce016e26cd7ee9a3f128613458fa8f180e (diff)
parent470d175f32aaae980cd301e6e5fc4b5a1630576d (diff)
Merge pull request #7432 from Bond-009/socketfactory
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;