mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #13187 from gnattu/properly-check-lan
Properly check LAN IP in HasRemoteAccess
This commit is contained in:
commit
eb5f8d49dd
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user