mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 04:18:27 +01:00
create single method to form api url
This commit is contained in:
@@ -1044,15 +1044,20 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(address))
|
||||
{
|
||||
address = string.Format("http://{0}:{1}",
|
||||
address,
|
||||
HttpPort.ToString(CultureInfo.InvariantCulture));
|
||||
address = GetLocalApiUrl(address);
|
||||
}
|
||||
|
||||
return address;
|
||||
}
|
||||
}
|
||||
|
||||
public string GetLocalApiUrl(string host)
|
||||
{
|
||||
return string.Format("http://{0}:{1}",
|
||||
host,
|
||||
HttpPort.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
public string LocalIpAddress
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user