mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Merge branch 'dev' of https://github.com/MediaBrowser/Emby into dev
This commit is contained in:
commit
ec79879aeb
1 changed files with 4 additions and 5 deletions
|
@ -65,12 +65,11 @@ namespace MediaBrowser.Server.Implementations.Connect
|
|||
|
||||
if (!string.IsNullOrWhiteSpace(address))
|
||||
{
|
||||
try
|
||||
{
|
||||
address = new Uri(address).Host;
|
||||
}
|
||||
catch
|
||||
Uri newUri;
|
||||
|
||||
if (Uri.TryCreate(address, UriKind.Absolute, out newUri))
|
||||
{
|
||||
address = newUri.Host;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue