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

Properly check LAN IP in HasRemoteAccess

Original-merge: eb5f8d49dd

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

Backported-by: Bond_009 <bond.009@outlook.com>
pull/13488/head
gnattu 3 months ago committed by Bond_009
parent 144e62027d
commit 2392290b72

@ -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;

Loading…
Cancel
Save