Merge pull request #983 from jabbera/ssl2

If using https make remote url reflect that.
pull/702/head
Luke 10 years ago
commit e1d3e001cf

@ -79,7 +79,7 @@ namespace MediaBrowser.Server.Implementations.Connect
if (!ip.StartsWith("http://", StringComparison.OrdinalIgnoreCase) &&
!ip.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
{
ip = "http://" + ip;
ip = (_config.Configuration.UseHttps ? "https://" : "http://") + ip;
}
return ip + ":" + _config.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture);

Loading…
Cancel
Save