Author: ron.sigal(a)jboss.com
Date: 2010-08-02 16:48:49 -0400 (Mon, 02 Aug 2010)
New Revision: 5959
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/stream/StreamServer.java
Log:
JBREM-1235: Replaced call(s) to InetAddress.getLocalHost() with
LocalHostUtil.getLocalHost().
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/stream/StreamServer.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/stream/StreamServer.java 2010-08-02
20:48:26 UTC (rev 5958)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/stream/StreamServer.java 2010-08-02
20:48:49 UTC (rev 5959)
@@ -30,6 +30,7 @@
import org.jboss.remoting.callback.InvokerCallbackHandler;
import org.jboss.remoting.transport.Connector;
import org.jboss.remoting.transport.PortUtil;
+import org.jboss.remoting.util.LocalHostUtil;
import javax.management.MBeanServer;
import java.io.IOException;
@@ -116,13 +117,13 @@
transport = System.getProperty(STREAM_TRANSPORT_KEY, transport);
try
{
- host = InetAddress.getLocalHost().getHostName();
+ host = LocalHostUtil.getLocalHost().getHostName();
}
catch(UnknownHostException e)
{
try
{
- host = InetAddress.getLocalHost().getHostAddress();
+ host = LocalHostUtil.getLocalHost().getHostAddress();
}
catch(UnknownHostException e1)
{
Show replies by date