瀏覽代碼

Format the WAN API Url correctly with https and Port.

Phlogi 6 年之前
父節點
當前提交
fb7f29de18
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Emby.Server.Implementations/ApplicationHost.cs

+ 2 - 2
Emby.Server.Implementations/ApplicationHost.cs

@@ -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);