mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Allow entering IPv6 address
This commit is contained in:
@@ -744,10 +744,9 @@ public class FragmentIdentity extends FragmentBase {
|
||||
|
||||
boolean should = args.getBoolean("should");
|
||||
|
||||
if (host.contains(":")) {
|
||||
Uri h = Uri.parse(host);
|
||||
host = h.getHost();
|
||||
}
|
||||
int semi = host.indexOf(':');
|
||||
if (semi > 0 && host.indexOf(':', semi + 1) < 0)
|
||||
host = host.substring(0, semi);
|
||||
|
||||
//if (TextUtils.isEmpty(name) && !should)
|
||||
// throw new IllegalArgumentException(context.getString(R.string.title_no_name));
|
||||
|
||||
Reference in New Issue
Block a user