diff --git a/src/Readarr.Http/Extensions/RequestExtensions.cs b/src/Readarr.Http/Extensions/RequestExtensions.cs index 5e01258ea..1928a428a 100644 --- a/src/Readarr.Http/Extensions/RequestExtensions.cs +++ b/src/Readarr.Http/Extensions/RequestExtensions.cs @@ -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