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

Properly check LAN IP in HasRemoteAccess
This commit is contained in:
Bond-009 2024-12-09 19:31:29 +01:00 committed by GitHub
commit eb5f8d49dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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