mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
Use GetSmartApiUrl instead (hopefully it works)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user