The Free Software Media System - Server Backend & API
Updated to latest version of code.
Greenbackec57eeff2b53
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.csindex a644d2c8cc..504bde996b 100644--- a/Emby.Dlna/Main/DlnaEntryPoint.cs+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs@@ -297,7 +297,7 @@ namespace Emby.Dlna.MainCacheLifetime = 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 = address.Address,- SubnetMask = address.Mask,+ PrefixLength = address.PrefixLength,FriendlyName = "Jellyfin",Manufacturer = "Jellyfin",ModelName = "Jellyfin Server",diff --git a/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs b/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.csindex 6f636819fc..c3533d7956 100644--- a/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs+++ b/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs@@ -52,7 +52,7 @@ namespace Jellyfin.Server.Middlewareif (remoteAddressFilter.Count > 0 && !networkManager.IsInLocalNetwork(remoteIp)){// remoteAddressFilter is a whitelist or blacklist.- bool isListed = remoteAddressFilter.Contains(remoteIp);+ bool isListed = remoteAddressFilter.ContainsAddress(remoteIp);if (!serverConfigurationManager.GetNetworkConfiguration().IsRemoteIPFilterBlacklist){// Black list, so flip over.diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.csindex ca382c905a..ae175d8c9d 100644--- a/RSSDP/SsdpDevicePublisher.cs+++ b/RSSDP/SsdpDevicePublisher.cs@@ -302,8 +302,8 @@ namespace Rssdp.Infrastructureforeach (var device in deviceList){var root = device.ToRootDevice();- var source = new IPNetAddress(root.Address, root.SubnetMask);- var destination = new IPNetAddress(remoteEndPoint.Address, root.SubnetMask);+ var source = new IPNetAddress(root.Address, root.PrefixLength);+ var destination = new IPNetAddress(remoteEndPoint.Address, root.PrefixLength);if (!_sendOnlyMatchedHost || source.NetworkAddress.Equals(destination.NetworkAddress)){SendDeviceSearchResponses(device, remoteEndPoint, receivedOnlocalIpAddress, cancellationToken);diff --git a/RSSDP/SsdpRootDevice.cs b/RSSDP/SsdpRootDevice.csindex 8937ec331f..d5abe4a4ca 100644--- a/RSSDP/SsdpRootDevice.cs+++ b/RSSDP/SsdpRootDevice.cs@@ -45,9 +45,9 @@ namespace Rssdppublic IPAddress Address { get; set; }/// <summary>- /// Gets or sets the SubnetMask used to check if the received message from same interface with this device/tree. Required.+ /// Gets or sets the prefix length used to check if the received message from same interface with this device/tree. Required./// </summary>- public IPAddress SubnetMask { get; set; }+ public byte PrefixLength { get; set; }/// <summary>/// The base URL to use for all relative url's provided in other propertise (and those of child devices). Optional.