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

jvergara
22.09.2009 ddca0eb7a96ddbbe6f0ecf8d40caf2390507a4b5
opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
@@ -449,7 +449,7 @@
    desc.setSchema(reader.getSchema());
    desc.setSchemaEnabled(reader.isSchemaEnabled());
  }
  private int i=0;
  /**
   * Regenerates the last found ServerDescriptor object.
   *
@@ -1029,17 +1029,36 @@
        {
          if (port > 0)
          {
            url = sProtocol +"://localhost:"+port;
            if (server.isLocal())
            {
              url = sProtocol +"://localhost:"+port;
            }
            else
            {
              url = sProtocol +"://"+
              ConnectionUtils.getHostNameForLdapUrl(server.getHostname())+
              ":"+port;
            }
          }
        }
        else
        {
          if (port > 0)
          {
            InetAddress address = addresses.first();
            url = sProtocol +"://"+
            ConnectionUtils.getHostNameForLdapUrl(address.getHostAddress())+":"+
            port;
            if (server.isLocal())
            {
              InetAddress address = addresses.first();
              url = sProtocol +"://"+
              ConnectionUtils.getHostNameForLdapUrl(address.getHostAddress())+
              ":"+
              port;
            }
            else
            {
              url = sProtocol +"://"+
              ConnectionUtils.getHostNameForLdapUrl(server.getHostname())+
              ":"+port;
            }
          }
        }
      }