Removed trailing spaces, renamed get wan IP function.

This commit is contained in:
Phlogi 2019-03-25 21:34:55 +01:00 committed by GitHub
parent 6480cfcc87
commit 4c8f8cf64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1376,7 +1376,7 @@ namespace Emby.Server.Implementations
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
{
wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);
wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
}
else
{
@ -1435,7 +1435,7 @@ namespace Emby.Server.Implementations
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
{
wanAddress = await GetWanApiUrl(cancellationToken).ConfigureAwait(false);
wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
}
else
{
@ -1478,7 +1478,7 @@ namespace Emby.Server.Implementations
return null;
}
public async Task<string> GetWanApiUrl(CancellationToken cancellationToken)
public async Task<string> GetWanApiUrlFromExternal(CancellationToken cancellationToken)
{
const string Url = "http://ipv4.icanhazip.com";
try