mirror of
https://github.com/bitwarden/mobile
synced 2026-01-03 17:13:50 +00:00
fix ip address matching on getdomain
This commit is contained in:
@@ -63,8 +63,11 @@ namespace Bit.App.Pages
|
||||
{
|
||||
name = Uri.Substring(Constants.AndroidAppProtocol.Length);
|
||||
}
|
||||
else if(!System.Uri.TryCreate(Uri, UriKind.Absolute, out Uri uri) ||
|
||||
!DomainName.TryParseBaseDomain(uri.Host, out name))
|
||||
else
|
||||
{
|
||||
name = CoreHelpers.GetDomain(Uri);
|
||||
}
|
||||
if(string.IsNullOrWhiteSpace(name))
|
||||
{
|
||||
name = "--";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user