From 6c9275c082fc2252366282be7c5b1c9be2ae9edc Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 16 May 2007 13:20:36 +0000
Subject: [PATCH] use the admin framework facilities to do pattern matchin on the replication server addresses to make sure that it contain both a hostname and a port number.
---
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
index 8319aa1..a6268a4 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
@@ -203,9 +203,9 @@
{
for (String server : servers)
{
- String token[] = server.split(":");
- String hostname = token[0];
- String port = token[1];
+ int separator = server.lastIndexOf(':');
+ String port = server.substring(separator + 1);
+ String hostname = server.substring(0, separator);
try
{
--
Gitblit v1.10.0