aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna
diff options
context:
space:
mode:
authorJim Cartlidge <jimcartlidge@yahoo.co.uk>2020-10-04 09:56:33 +0100
committerJim Cartlidge <jimcartlidge@yahoo.co.uk>2020-10-04 09:56:33 +0100
commit53af1e34553917d00e17465f345ea530f04beddf (patch)
treec9ec4bbd1536da705263c71075d48bb9f226a9c7 /Emby.Dlna
parent3b64171cde969a7cfca60d28c7782774a173758b (diff)
Updatig netcollection & re-inserting BOM
Diffstat (limited to 'Emby.Dlna')
-rw-r--r--Emby.Dlna/Main/DlnaEntryPoint.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs
index 33a953563b..a644d2c8cc 100644
--- a/Emby.Dlna/Main/DlnaEntryPoint.cs
+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs
@@ -271,33 +271,33 @@ namespace Emby.Dlna.Main
bindAddresses = _networkManager.GetLoopbacks();
}
- foreach (var addr in bindAddresses)
+ foreach (IPNetAddress address in bindAddresses)
{
- if (addr.AddressFamily == AddressFamily.InterNetworkV6)
+ if (address.AddressFamily == AddressFamily.InterNetworkV6)
{
// Not supporting IPv6 right now
continue;
}
// Limit to LAN addresses only
- if (!_networkManager.IsInLocalNetwork(addr))
+ if (!_networkManager.IsInLocalNetwork(address))
{
continue;
}
var fullService = "urn:schemas-upnp-org:device:MediaServer:1";
- _logger.LogInformation("Registering publisher for {0} on {1}", fullService, addr);
+ _logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
var descriptorUri = "/dlna/" + udn + "/description.xml";
- var uri = new Uri(_appHost.GetSmartApiUrl(addr.Address) + descriptorUri);
+ var uri = new Uri(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
var device = new SsdpRootDevice
{
CacheLifetime = TimeSpan.FromSeconds(1800), // How long SSDP clients can cache this info.
Location = uri, // Must point to the URL that serves your devices UPnP description document.
- Address = addr.Address,
- SubnetMask = ((IPNetAddress)addr).Mask, // MIGRATION: This fields is going.
+ Address = address.Address,
+ SubnetMask = address.Mask,
FriendlyName = "Jellyfin",
Manufacturer = "Jellyfin",
ModelName = "Jellyfin Server",