Also add the WAN switch to the public system info.

This commit is contained in:
Phlogi 2019-03-24 17:11:21 +01:00 committed by GitHub
parent 030fcaac15
commit d18252542d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1375,7 +1375,7 @@ namespace Emby.Server.Implementations
var 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.Implementations
public 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,