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

jvergara
29.17.2009 3f03092522f3d20fadd86e3581137cf0c98aa862
Be consistent with the other command-lines in the default host name proposed for the host name.
1 files modified
21 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/UserData.java 21 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 */
package org.opends.quicksetup;
@@ -96,6 +96,8 @@
  private String configurationClass;
  private static String defaultHostName;
  /**
   * Creates a user data object with default values.
   */
@@ -677,15 +679,18 @@
   */
  public static String getDefaultHostName()
  {
    String name = "";
    try
    if (defaultHostName == null)
    {
      name = java.net.InetAddress.getLocalHost().getCanonicalHostName();
      try
      {
        defaultHostName = java.net.InetAddress.getLocalHost().getHostName();
      }
      catch (Throwable t)
      {
        defaultHostName = "localhost";
      }
    }
    catch (Throwable t)
    {
    }
    return name;
    return defaultHostName;
  }
  /**