aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-09-10 14:10:26 +0000
committerGitHub <noreply@github.com>2020-09-10 14:10:26 +0000
commit4447589460b00fc65acf1129c816ebeba9e87616 (patch)
tree6ded68d18452e6b71bd87a460e21ad46a94080cb /Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs
parent621f3b705052f628e27fb975a8bb809853742ad8 (diff)
parentcb173d79e6f0c192be88eb6466d9cd52a9ee0e46 (diff)
Merge pull request #4116 from cvium/add_known_proxies
Add Known Proxies to system configuration
Diffstat (limited to 'Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs')
-rw-r--r--Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs b/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs
index 59b5fb1ed..4bda8f273 100644
--- a/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs
+++ b/Jellyfin.Server/Middleware/IpBasedAccessValidationMiddleware.cs
@@ -32,13 +32,13 @@ namespace Jellyfin.Server.Middleware
/// <returns>The async task.</returns>
public async Task Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
{
- if (httpContext.Request.IsLocal())
+ if (httpContext.IsLocal())
{
await _next(httpContext).ConfigureAwait(false);
return;
}
- var remoteIp = httpContext.Request.RemoteIp();
+ var remoteIp = httpContext.GetNormalizedRemoteIp();
if (serverConfigurationManager.Configuration.EnableRemoteAccess)
{