aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index c244e7cfa..da99ea647 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1186,14 +1186,7 @@ namespace Emby.Server.Implementations
}
/// <inheritdoc/>
- public string GetUrlForUseByHttpApi()
- {
- // GetBindInterfaces will return an interface.
- var bind = NetManager.GetInternalBindAddresses().FirstOrDefault() ??
- NetManager.GetAllBindInterfaces(true).First();
-
- return GetLocalApiUrl(bind.Address.ToString(), Uri.UriSchemeHttp);
- }
+ public string GetUrlForUseByHttpApi() => GetSmartApiUrl(string.Empty);
/// <inheritdoc/>
public string GetLocalApiUrl(string hostname, string scheme = null, int? port = null)