Author: ron.sigal(a)jboss.com
Date: 2010-08-02 16:47:27 -0400 (Mon, 02 Aug 2010)
New Revision: 5955
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/ServerInvoker.java
Log:
JBREM-1235: Replaced call(s) to InetAddress.getLocalHost() with
LocalHostUtil.getLocalHost().
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/ServerInvoker.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/ServerInvoker.java 2010-08-02
20:47:10 UTC (rev 5954)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/ServerInvoker.java 2010-08-02
20:47:27 UTC (rev 5955)
@@ -36,6 +36,7 @@
import org.jboss.remoting.stream.StreamHandler;
import org.jboss.remoting.stream.StreamInvocationHandler;
import org.jboss.remoting.transport.PortUtil;
+import org.jboss.remoting.util.LocalHostUtil;
import org.jboss.remoting.serialization.ClassLoaderUtility;
import org.jboss.util.threadpool.BasicThreadPool;
import org.jboss.util.threadpool.BlockingMode;
@@ -1074,7 +1075,7 @@
}
else
{
- addr = InetAddress.getLocalHost();
+ addr = LocalHostUtil.getLocalHost();
}
int port = locator.getPort();
if(port <= 0)
@@ -1090,7 +1091,7 @@
if(clientConnectAddress != null)
{
// can't use uri address, as is for client only
- serverBindAddress = InetAddress.getLocalHost().getHostAddress();
+ serverBindAddress = LocalHostUtil.getLocalHost().getHostAddress();
}
else
{