diff options
| author | cvium <clausvium@gmail.com> | 2021-09-07 10:27:55 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-09-07 10:27:55 +0200 |
| commit | be9663ae896dd28aa9a455469391f0304cc73a5f (patch) | |
| tree | 59453a949b6548226b09b2af24659c8945689869 /Emby.Server.Implementations | |
| parent | ffe5ae8056d2f145bacae120b56fde39d132dc6f (diff) | |
Use GetSmartApiUrl instead (hopefully it works)
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index c244e7cfa..da99ea647 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -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) |
