The Free Software Media System - Server Backend & API
Change WAN IP behaviour: Use ServerConfiguration.WanDdns if set in configuration.
Phlogi69cc5814d857
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 5f4c30f0f1..7e236002a2 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1372,7 +1372,15 @@ namespace Emby.Server.Implementationspublic async Task<SystemInfo> GetSystemInfo(CancellationToken cancellationToken){var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);- var wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);++ if ( String.IsNullOrEmpty(ServerConfiguration.WanDdns) ){+ var wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);+ } else {+ // Use the (dynmic) domain name set in the configuration if available instead of querying+ // an external service to get the IP address+ // The domain resolution to the ip should be part of the client, not the server.+ var wanAddress = ServerConfiguration.WanDdns;+ }return new SystemInfo{