diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-10-25 22:41:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-25 22:41:32 +0200 |
| commit | 5eda5eb63668503d29290ab48ac8f1dc729f82c3 (patch) | |
| tree | 33ec2f526b98a13d7173690f5af1bd6b1ddf4086 /Jellyfin.Api/Controllers/SystemController.cs | |
| parent | da6225fb73322ea01ad0e4dd7048082e1d807298 (diff) | |
| parent | 90174f68e2b477e613d756d78cbfd89c2a33f30a (diff) | |
Merge pull request #6486 from fredriklindberg/support-forwarded-headers-for-api-url
Diffstat (limited to 'Jellyfin.Api/Controllers/SystemController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SystemController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/SystemController.cs b/Jellyfin.Api/Controllers/SystemController.cs index 741bdfee9..904738bb4 100644 --- a/Jellyfin.Api/Controllers/SystemController.cs +++ b/Jellyfin.Api/Controllers/SystemController.cs @@ -66,7 +66,7 @@ namespace Jellyfin.Api.Controllers [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult<SystemInfo> GetSystemInfo() { - return _appHost.GetSystemInfo(Request.HttpContext.Connection.RemoteIpAddress ?? IPAddress.Loopback); + return _appHost.GetSystemInfo(Request); } /// <summary> @@ -78,7 +78,7 @@ namespace Jellyfin.Api.Controllers [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult<PublicSystemInfo> GetPublicSystemInfo() { - return _appHost.GetPublicSystemInfo(Request.HttpContext.Connection.RemoteIpAddress ?? IPAddress.Loopback); + return _appHost.GetPublicSystemInfo(Request); } /// <summary> |
