From 5d8bdf3c45ba5425410a8ca278ae6df9655f3c71 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 14 Dec 2007 09:51:02 +0000
Subject: [PATCH] Fix for issue #2648 (dsconfig/dsreplication do not work with ipv6 address): Before creating the ldapURL, check if we have an IPv6 address

---
 opends/src/server/org/opends/server/util/cli/ConsoleApplication.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/cli/ConsoleApplication.java b/opends/src/server/org/opends/server/util/cli/ConsoleApplication.java
index 20bb514..d0b65c2 100644
--- a/opends/src/server/org/opends/server/util/cli/ConsoleApplication.java
+++ b/opends/src/server/org/opends/server/util/cli/ConsoleApplication.java
@@ -746,7 +746,7 @@
   {
     // Interact with the user though the console to get
     // LDAP connection information
-    String hostName = ci.getHostName();
+    String hostName = ConnectionUtils.getHostNameForLdapUrl(ci.getHostName());
     Integer portNumber = ci.getPortNumber();
     String bindDN = ci.getBindDN();
     String bindPassword = ci.getBindPassword();

--
Gitblit v1.10.0