[jboss-remoting-commits] JBoss Remoting SVN: r5657 - remoting2/branches/2.x/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Jan 8 23:19:48 EST 2010


Author: ron.sigal at jboss.com
Date: 2010-01-08 23:19:47 -0500 (Fri, 08 Jan 2010)
New Revision: 5657

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java
Log:
JBREM-1175: Added test for IPv6 host addresses to five argument constructor.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java	2010-01-09 04:19:42 UTC (rev 5656)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java	2010-01-09 04:19:47 UTC (rev 5657)
@@ -625,6 +625,12 @@
          createHomeLists(this.parameters, homesString, connectHomesString);
       }
       
+      // Test for IPv6 host address.
+      if (this.host != null && this.host.indexOf(":") >= 0 && this.host.indexOf("[") == -1)
+      {
+         this.host = "[" + this.host + "]";
+      }
+      
       rebuildLocatorURI();
       originalURL = uri;
       



More information about the jboss-remoting-commits mailing list