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

jvergara
22.09.2009 b4ca27a7ede81a89fd8d5926251c7ef0f57a2af2
Use the remote host name when creating the URLs used to browse the user data.
1 files modified
31 ■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java 31 ●●●● patch | view | raw | blame | history
opendj-sdk/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;
            }
          }
        }
      }