diff options
| author | cvium <clausvium@gmail.com> | 2020-09-10 14:16:41 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2020-09-10 14:16:41 +0200 |
| commit | 7576824cee0dc0d8e1729ae0a7e8e4f256b71efd (patch) | |
| tree | 6ceccabcbc8555de3275ae4cf6e59e8fd013584b /Jellyfin.Api/Controllers/UniversalAudioController.cs | |
| parent | 78cab77f819e8d8b283f95f2e48f635bcf66fea5 (diff) | |
Standardize use of IsLocal and RemoteIp
Diffstat (limited to 'Jellyfin.Api/Controllers/UniversalAudioController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/UniversalAudioController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UniversalAudioController.cs b/Jellyfin.Api/Controllers/UniversalAudioController.cs index f7f2d0174..e3e3166b0 100644 --- a/Jellyfin.Api/Controllers/UniversalAudioController.cs +++ b/Jellyfin.Api/Controllers/UniversalAudioController.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Jellyfin.Api.Constants; using Jellyfin.Api.Helpers; using Jellyfin.Api.Models.StreamingDtos; +using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.MediaEncoding; @@ -158,7 +159,7 @@ namespace Jellyfin.Api.Controllers true, true, true, - Request.HttpContext.Connection.RemoteIpAddress.ToString()); + Request.HttpContext.GetNormalizedRemoteIp()); } _mediaInfoHelper.SortMediaSources(info, maxStreamingBitrate); |
