浏览代码

update ssdp socket binding

Luke Pulverenti 10 年之前
父节点
当前提交
5a3ca5b6f9
共有 1 个文件被更改,包括 4 次插入1 次删除
  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)
                     {