|
|
@ -65,12 +65,11 @@ namespace MediaBrowser.Server.Implementations.Connect
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(address))
|
|
|
|
if (!string.IsNullOrWhiteSpace(address))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
Uri newUri;
|
|
|
|
{
|
|
|
|
|
|
|
|
address = new Uri(address).Host;
|
|
|
|
if (Uri.TryCreate(address, UriKind.Absolute, out newUri))
|
|
|
|
}
|
|
|
|
|
|
|
|
catch
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
address = newUri.Host;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|