瀏覽代碼

Backport pull request #13187 from jellyfin/release-10.10.z

Properly check LAN IP in HasRemoteAccess

Original-merge: eb5f8d49dde2c7fe07cb50cf185ae1f9f62f3c54

Merged-by: Bond-009 <bond.009@outlook.com>

Backported-by: Bond_009 <bond.009@outlook.com>
gnattu 4 月之前
父節點
當前提交
2392290b72
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Jellyfin.Networking/Manager/NetworkManager.cs

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

@@ -702,7 +702,7 @@ public class NetworkManager : INetworkManager, IDisposable
                 return false;
                 return false;
             }
             }
         }
         }
-        else if (!_lanSubnets.Any(x => x.Contains(remoteIP)))
+        else if (!IsInLocalNetwork(remoteIP))
         {
         {
             // Remote not enabled. So everyone should be LAN.
             // Remote not enabled. So everyone should be LAN.
             return false;
             return false;