aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index b94036533..ce24e933d 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1203,8 +1203,9 @@ namespace Emby.Server.Implementations
/// <inheritdoc/>
public string GetUrlForUseByHttpApi()
{
+ // GetBindInterfaces will return an interface.
var bind = NetManager.GetInternalBindAddresses().FirstOrDefault() ??
- NetManager.GetAllBindInterfaces(true).FirstOrDefault();
+ NetManager.GetAllBindInterfaces(true).First();
return GetLocalApiUrl(bind.Address.ToString(), Uri.UriSchemeHttp);
}