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

jvergara
26.25.2009 dbd771b7a9e199f8dc2fe4f4da05bf0e18b81fc7
Modify the code to try at least twice to connect to the alternative 'local' addresses.
1 files modified
4 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 4 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
@@ -456,13 +456,13 @@
          InitialLdapContext ctx = null;
          for (int i=0; i<20 && !connected; i++)
          {
            if ((i == 10) && !"localhost".equals(hostName))
            if ((i == 10) || (i == 11) && !"localhost".equals(hostName))
            {
              // Try with local host.  This might be necessary in certain
              // network configurations.
              ldapUrl = "ldaps://localhost:" + port;
            }
            if (i == 15)
            if ((i == 15) || (i == 16))
            {
              // Try with 0.0.0.0.  This might be necessary in certain
              // network configurations.