aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/MediaInfoController.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.Api/Controllers/MediaInfoController.cs
parent621f3b705052f628e27fb975a8bb809853742ad8 (diff)
parentcb173d79e6f0c192be88eb6466d9cd52a9ee0e46 (diff)
Merge pull request #4116 from cvium/add_known_proxies
Add Known Proxies to system configuration
Diffstat (limited to 'Jellyfin.Api/Controllers/MediaInfoController.cs')
-rw-r--r--Jellyfin.Api/Controllers/MediaInfoController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs
index ee171e856..0560dcd5e 100644
--- a/Jellyfin.Api/Controllers/MediaInfoController.cs
+++ b/Jellyfin.Api/Controllers/MediaInfoController.cs
@@ -9,6 +9,7 @@ using Jellyfin.Api.Constants;
using Jellyfin.Api.Helpers;
using Jellyfin.Api.Models.MediaInfoDtos;
using Jellyfin.Api.Models.VideoDtos;
+using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Net;
@@ -165,7 +166,7 @@ namespace Jellyfin.Api.Controllers
enableTranscoding,
allowVideoStreamCopy,
allowAudioStreamCopy,
- Request.HttpContext.Connection.RemoteIpAddress.ToString());
+ Request.HttpContext.GetNormalizedRemoteIp());
}
_mediaInfoHelper.SortMediaSources(info, maxStreamingBitrate);