Use GetSmartApiUrl instead (hopefully it works)

This commit is contained in:
cvium
2021-09-07 10:27:55 +02:00
parent ffe5ae8056
commit be9663ae89
2 changed files with 5 additions and 12 deletions

View File

@@ -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)