mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Remove missed unused functions
Forgot to remove these in the previous WAN IP detection removal commit
This commit is contained in:
parent
0562b4cf6f
commit
208c8b2b9d
@ -1524,32 +1524,6 @@ namespace Emby.Server.Implementations
|
|||||||
HttpPort.ToString(CultureInfo.InvariantCulture));
|
HttpPort.ToString(CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetWanApiUrl(IPAddress ipAddress)
|
|
||||||
{
|
|
||||||
if (ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
|
|
||||||
{
|
|
||||||
var str = RemoveScopeId(ipAddress.ToString());
|
|
||||||
|
|
||||||
return GetWanApiUrl("[" + str + "]");
|
|
||||||
}
|
|
||||||
|
|
||||||
return GetWanApiUrl(ipAddress.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetWanApiUrl(string host)
|
|
||||||
{
|
|
||||||
if (EnableHttps)
|
|
||||||
{
|
|
||||||
return string.Format("https://{0}:{1}",
|
|
||||||
host,
|
|
||||||
ServerConfigurationManager.Configuration.PublicHttpsPort.ToString(CultureInfo.InvariantCulture));
|
|
||||||
}
|
|
||||||
|
|
||||||
return string.Format("http://{0}:{1}",
|
|
||||||
host,
|
|
||||||
ServerConfigurationManager.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Task<List<IPAddress>> GetLocalIpAddresses(CancellationToken cancellationToken)
|
public Task<List<IPAddress>> GetLocalIpAddresses(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
return GetLocalIpAddressesInternal(true, 0, cancellationToken);
|
return GetLocalIpAddressesInternal(true, 0, cancellationToken);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user