Removed trailing spaces, renamed get wan IP function.

pull/1151/head
Phlogi 6 years ago committed by GitHub
parent 6480cfcc87
commit 4c8f8cf64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save