@ -156,6 +156,12 @@ namespace Readarr.Http.Extensions
}
var remoteIP = request.HttpContext.Connection.RemoteIpAddress;
if (remoteIP.IsIPv4MappedToIPv6)
{
remoteIP = remoteIP.MapToIPv4();
var remoteAddress = remoteIP.ToString();
// Only check if forwarded by a local network reverse proxy