Cody Robibero 3 anni fa
parent
commit
1bbe262646
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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));
         }
     }