mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Change WAN IP behaviour: Use ServerConfiguration.WanDdns if set in configuration.
This commit is contained in:
parent
414a318a0d
commit
69cc5814d8
@ -1372,7 +1372,15 @@ namespace Emby.Server.Implementations
|
||||
public 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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user