Fix build

This commit is contained in:
Cody Robibero 2021-08-18 05:05:47 -06:00
parent bc69aa251b
commit 1bbe262646

View File

@ -90,6 +90,11 @@ namespace Jellyfin.Server.Filters
private bool IsManagementListenEntrypoint(ActionExecutingContext context)
{
if (context.HttpContext.Connection.LocalIpAddress == null)
{
return false;
}
return managementEndpoints.Contains((context.HttpContext.Connection.LocalIpAddress, context.HttpContext.Connection.LocalPort));
}
}