mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
changed to first
This commit is contained in:
parent
7ff52bf755
commit
417a7011c7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user