Simplify/improve updating passwords

This commit is contained in:
M66B
2019-10-11 15:32:03 +02:00
parent 1e9a77e249
commit 2f771c6fa5
5 changed files with 25 additions and 24 deletions

View File

@@ -346,13 +346,7 @@ public class ConnectionHelper {
return null;
}
static boolean isSameDomain(String host1, String host2) {
String domain1 = getDomain(host1);
String domain2 = getDomain(host2);
return Objects.equals(domain1, domain2);
}
private static String getDomain(String host) {
static String getDomain(String host) {
if (host != null) {
String[] h = host.split("\\.");
if (h.length >= 2)