Format the WAN API Url correctly with https and Port.

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

View file

@ -1372,7 +1372,7 @@ namespace Emby.Server.Implementations
public async Task<SystemInfo> GetSystemInfo(CancellationToken cancellationToken)
{
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
var wanAddress = ServerConfigurationManager.Configuration.WanDdns;
var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
if (string.IsNullOrEmpty(wanAddress)){
wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);
@ -1426,7 +1426,7 @@ namespace Emby.Server.Implementations
public async Task<PublicSystemInfo> GetPublicSystemInfo(CancellationToken cancellationToken)
{
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
var wanAddress = ServerConfigurationManager.Configuration.WanDdns;
var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
if (string.IsNullOrEmpty(wanAddress)){
wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);