[jboss-remoting-commits] JBoss Remoting SVN: r5960 - remoting2/branches/2.2/src/main/org/jboss/remoting/transport.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Mon Aug 2 16:49:17 EDT 2010
Author: ron.sigal at jboss.com
Date: 2010-08-02 16:49:17 -0400 (Mon, 02 Aug 2010)
New Revision: 5960
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/Connector.java
Log:
JBREM-1235: Replaced call(s) to InetAddress.getLocalHost() with LocalHostUtil.getLocalHost().
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/transport/Connector.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/transport/Connector.java 2010-08-02 20:48:49 UTC (rev 5959)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/transport/Connector.java 2010-08-02 20:49:17 UTC (rev 5960)
@@ -31,6 +31,7 @@
import org.jboss.remoting.marshal.MarshalFactory;
import org.jboss.remoting.marshal.MarshallLoaderFactory;
import org.jboss.remoting.serialization.ClassLoaderUtility;
+import org.jboss.remoting.util.LocalHostUtil;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
@@ -525,8 +526,8 @@
String path = (String) invokerConfig.get("path");
PortUtil.updateRange(invokerConfig);
- String host = clientConnectAddress != null ? clientConnectAddress : serverBindAddress != null ? serverBindAddress : InetAddress.getLocalHost().getHostAddress();
- int port = clientConnectPort != null ? Integer.parseInt(clientConnectPort) : serverBindPort != null ? Integer.parseInt(serverBindPort) : PortUtil.findFreePort(serverBindAddress != null ? serverBindAddress : InetAddress.getLocalHost().getHostAddress());
+ String host = clientConnectAddress != null ? clientConnectAddress : serverBindAddress != null ? serverBindAddress : LocalHostUtil.getLocalHost().getHostAddress();
+ int port = clientConnectPort != null ? Integer.parseInt(clientConnectPort) : serverBindPort != null ? Integer.parseInt(serverBindPort) : PortUtil.findFreePort(serverBindAddress != null ? serverBindAddress : LocalHostUtil.getLocalHost().getHostAddress());
// finally, let's bild the invoker uri
String tempURI = transport + "://" + fixHostnameForURL(host) + ":" + port;
More information about the jboss-remoting-commits
mailing list