浏览代码

Fix build

Cody Robibero 3 年之前
父节点
当前提交
1bbe262646
共有 1 个文件被更改,包括 5 次插入0 次删除
  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));
         }
     }