Sfoglia il codice sorgente

Ignore IPv6 DLNA devices

DLNA is not ready for IPv6 now, uncomment the code will be fine.
Xu Fasheng 6 anni fa
parent
commit
1eb26bdf08
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Emby.Dlna/Main/DlnaEntryPoint.cs

+ 4 - 4
Emby.Dlna/Main/DlnaEntryPoint.cs

@@ -253,10 +253,10 @@ namespace Emby.Dlna.Main
             foreach (var address in addresses)
             foreach (var address in addresses)
             {
             {
                 // TODO: Remove this condition on platforms that support it
                 // TODO: Remove this condition on platforms that support it
-                //if (address.AddressFamily == IpAddressFamily.InterNetworkV6)
-                //{
-                //    continue;
-                //}
+                if (address.AddressFamily == IpAddressFamily.InterNetworkV6)
+                {
+                   continue;
+                }
 
 
                 var fullService = "urn:schemas-upnp-org:device:MediaServer:1";
                 var fullService = "urn:schemas-upnp-org:device:MediaServer:1";