This commit is contained in:
Luke Pulverenti 2015-01-17 13:56:53 -05:00
commit 5f3c2f68b0

View File

@ -79,7 +79,7 @@ namespace MediaBrowser.Server.Implementations.Connect
if (!ip.StartsWith("http://", StringComparison.OrdinalIgnoreCase) && if (!ip.StartsWith("http://", StringComparison.OrdinalIgnoreCase) &&
!ip.StartsWith("https://", 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); return ip + ":" + _config.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture);