mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Correct use of local variable wanAddress.
This commit is contained in:
parent
1b03f078b9
commit
122cba2aa7
@ -1373,13 +1373,15 @@ namespace Emby.Server.Implementations
|
|||||||
{
|
{
|
||||||
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
|
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
|
string wanAddress;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
|
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
|
||||||
{
|
{
|
||||||
var wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
|
wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
|
wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new SystemInfo
|
return new SystemInfo
|
||||||
@ -1431,13 +1433,15 @@ namespace Emby.Server.Implementations
|
|||||||
{
|
{
|
||||||
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
|
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
|
string wanAddress;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
|
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
|
||||||
{
|
{
|
||||||
var wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
|
wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
|
wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
|
||||||
}
|
}
|
||||||
return new PublicSystemInfo
|
return new PublicSystemInfo
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user