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

jvergara
29.33.2009 f6617fb89ef9b57aee493b9d5d60c8184a263618
opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
@@ -1083,14 +1083,13 @@
      SortedSet<InetAddress> addresses = desc.getAddresses();
      if (addresses.size() == 0) {
        if (port > 0) {
          url = "ldaps://localhost:" + port;
          url = ConnectionUtils.getLDAPUrl("localhost", port, true);
        }
      } else {
        if (port > 0) {
          InetAddress address = addresses.first();
          url = "ldaps://" +
          ConnectionUtils.getHostNameForLdapUrl(address.getHostAddress()) + ":"
          + port;
          String a = address.getHostAddress();
          url = ConnectionUtils.getLDAPUrl(a, port, true);
        }
      }
    }