diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-05-04 16:32:17 +0100 |
|---|---|---|
| committer | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-05-04 16:32:17 +0100 |
| commit | 417a7011c7b5fe4a5ca5ce7c0b61c14f15bc748b (patch) | |
| tree | 1d703894f1fedb352cf2e2c50a29cbd393e7673c | |
| parent | 7ff52bf755b6bed22ecef8d22fafacfce83890b7 (diff) | |
changed to first
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 3 |
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); } |
