Author: ron.sigal(a)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;
Show replies by date