mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Properly check LAN IP in HasRemoteAccess
We cannot simply use the subnet list to check if the IP is in LAN as it does not handle special cases like IPv4MappedToIPv6 and IPv6 loopback addresses.
This commit is contained in:
parent
ff4f3b0441
commit
2a96b8b34b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue