Skip to content

The Free Software Media System - Server Backend & API

Merge pull request #6486 from fredriklindberg/support-forwarded-headers-for-api-url

Claus Vium5eda5eb63668
diff --cc Emby.Server.Implementations/ApplicationHost.cs
index 1f11bdad74,64ec5833f4..6fd152a42d
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@@ -1091,8 -1097,9 +1091,8 @@@ namespace Emby.Server.Implementation
CanLaunchWebBrowser = CanLaunchWebBrowser,
TranscodingTempPath = ConfigurationManager.GetTranscodePath(),
ServerName = FriendlyName,
- LocalAddress = GetSmartApiUrl(source),
+ LocalAddress = GetSmartApiUrl(request),
SupportsLibraryMonitor = true,
- EncoderLocation = _mediaEncoder.EncoderLocation,
SystemArchitecture = RuntimeInformation.OSArchitecture,
PackageName = _startupOptions.PackageName
};