The Free Software Media System - Server Backend & API
Also add the WAN switch to the public system info.
Phlogid18252542d81
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex fea23a3d7d..a20838daf0 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1375,7 +1375,7 @@ namespace Emby.Server.Implementationsvar wanAddress = ServerConfigurationManager.Configuration.WanDdns;if (string.IsNullOrEmpty(wanAddress)){- var wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);+ wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);}return new SystemInfo@@ -1426,7 +1426,11 @@ namespace Emby.Server.Implementationspublic async Task<PublicSystemInfo> GetPublicSystemInfo(CancellationToken cancellationToken){var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);- var wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);+ var wanAddress = ServerConfigurationManager.Configuration.WanDdns;++ if (string.IsNullOrEmpty(wanAddress)){+ wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);+ }return new PublicSystemInfo{Version = ApplicationVersion,