Browse Source

Merge pull request #13187 from gnattu/properly-check-lan

Properly check LAN IP in HasRemoteAccess
Bond-009 6 tháng trước cách đây
mục cha
commit
eb5f8d49dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }
         }
-        else if (!_lanSubnets.Any(x => x.Contains(remoteIP)))
+        else if (!IsInLocalNetwork(remoteIP))
         {
             // Remote not enabled. So everyone should be LAN.
             return false;