Cody Robibero il y a 4 ans
Parent
commit
1bbe262646
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Jellyfin.Server/Filters/ManagementInterfaceFilter.cs

+ 5 - 0
Jellyfin.Server/Filters/ManagementInterfaceFilter.cs

@@ -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));
         }
     }