mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
13.15.2016 e61d6d0a55d022a0768e730521bfea36ad506f9d
opendj-server-legacy/src/main/java/org/opends/admin/ads/util/ServerLoader.java
@@ -375,22 +375,11 @@
    for (PreferredConnection connection : preferredLDAPURLs)
    {
      String url = connection.getLDAPURL();
      if (url.equalsIgnoreCase(adminConnectorUrl))
      {
        ldapUrls.add(connection);
      }
      else if (url.equalsIgnoreCase(ldapsUrl) &&
          connection.getType() == LDAPS)
      {
        ldapUrls.add(connection);
      }
      else if (url.equalsIgnoreCase(startTLSUrl) &&
          connection.getType() == START_TLS)
      {
        ldapUrls.add(connection);
      }
      else if (url.equalsIgnoreCase(ldapUrl) &&
          connection.getType() == LDAP)
      org.opends.admin.ads.util.PreferredConnection.Type type = connection.getType();
      if (url.equalsIgnoreCase(adminConnectorUrl)
          || (url.equalsIgnoreCase(ldapsUrl) && type == LDAPS)
          || (url.equalsIgnoreCase(startTLSUrl) && type == START_TLS)
          || (url.equalsIgnoreCase(ldapUrl) && type == LDAP))
      {
        ldapUrls.add(connection);
      }