浏览代码

optimization

BaronGreenback 4 年之前
父节点
当前提交
a664aac881
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jellyfin.Networking/Manager/NetworkManager.cs

+ 1 - 1
Jellyfin.Networking/Manager/NetworkManager.cs

@@ -387,7 +387,7 @@ namespace Jellyfin.Networking.Manager
             // Get the first LAN interface address that isn't a loopback.
             // Get the first LAN interface address that isn't a loopback.
             var interfaces = CreateCollection(_interfaceAddresses
             var interfaces = CreateCollection(_interfaceAddresses
                 .Exclude(_bindExclusions)
                 .Exclude(_bindExclusions)
-                .Where(IsInLocalNetwork(p))
+                .Where(IsInLocalNetwork)
                 .OrderBy(p => p.Tag));
                 .OrderBy(p => p.Tag));
 
 
             if (interfaces.Count > 0)
             if (interfaces.Count > 0)