Explorar o código

update ssdp socket binding

Luke Pulverenti %!s(int64=10) %!d(string=hai) anos
pai
achega
5a3ca5b6f9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      MediaBrowser.Dlna/Ssdp/SsdpHandler.cs

+ 4 - 1
MediaBrowser.Dlna/Ssdp/SsdpHandler.cs

@@ -170,7 +170,10 @@ namespace MediaBrowser.Dlna.Ssdp
                     values["ST"] = d.Type;
                     values["USN"] = d.USN;
 
-                    SendDatagram(header, values, endpoint, new IPEndPoint(d.Address, 0));
+                    // Commenting this out because binding to the local ipendpoint often throws an error
+                    //SendDatagram(header, values, endpoint, new IPEndPoint(d.Address, 0));
+
+                    SendDatagram(header, values, endpoint, null);
 
                     if (_config.GetDlnaConfiguration().EnableDebugLogging)
                     {