Allow entering IPv6 address

This commit is contained in:
M66B
2021-08-31 07:33:27 +02:00
parent dd5c1d0ba3
commit 318d5df2b2
3 changed files with 9 additions and 12 deletions

View File

@@ -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));