From dbd771b7a9e199f8dc2fe4f4da05bf0e18b81fc7 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 26 Aug 2009 07:25:38 +0000
Subject: [PATCH] Modify the code to try at least twice to connect to the alternative 'local' addresses.

---
 opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java b/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
index bfaa60f..0fe2d5d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
+++ b/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.

--
Gitblit v1.10.0