aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorPhlogi <Phlogi@users.noreply.github.com>2019-03-24 16:50:39 +0100
committerGitHub <noreply@github.com>2019-03-24 16:50:39 +0100
commit7ebb043249d9c13c3bf2cc41c52d71c4e73f40f9 (patch)
treee6e9b19b6b45c431479de6050baeb9ceb13eeb59 /Emby.Server.Implementations/ApplicationHost.cs
parent598b1c99660547d7c8e3b253c4664a6faa78a03d (diff)
Removed comment, renamed methods consistently.
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 20a3c23ae..1a64c8eaa 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1376,9 +1376,6 @@ namespace Emby.Server.Implementations
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;
}
@@ -1498,13 +1495,13 @@ namespace Emby.Server.Implementations
{
if (ipAddress.AddressFamily == IpAddressFamily.InterNetworkV6)
{
- return GetLocalApiUrlWithPort("[" + ipAddress.Address + "]");
+ return GetLocalApiUrl("[" + ipAddress.Address + "]");
}
- return GetLocalApiUrlWithPort(ipAddress.Address);
+ return GetLocalApiUrl(ipAddress.Address);
}
- public string GetLocalApiUrlWithPort(string host)
+ public string GetLocalApiUrl(string host)
{
if (EnableHttps)
{
@@ -1521,13 +1518,13 @@ namespace Emby.Server.Implementations
{
if (ipAddress.AddressFamily == IpAddressFamily.InterNetworkV6)
{
- return GetWanApiUrlWithPort("[" + ipAddress.Address + "]");
+ return GetWanApiUrl("[" + ipAddress.Address + "]");
}
- return GetWanApiUrlWithPort(ipAddress.Address);
+ return GetWanApiUrl(ipAddress.Address);
}
- public string GetWanApiUrlWithPort(string host)
+ public string GetWanApiUrl(string host)
{
if (EnableHttps)
{