[jboss-remoting-commits] JBoss Remoting SVN: r5957 - remoting2/branches/2.2/src/main/org/jboss/remoting/detection/multicast.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Mon Aug 2 16:48:05 EDT 2010
Author: ron.sigal at jboss.com
Date: 2010-08-02 16:48:04 -0400 (Mon, 02 Aug 2010)
New Revision: 5957
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java
Log:
JBREM-1235: Replaced call(s) to InetAddress.getLocalHost() with LocalHostUtil.getLocalHost().
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java 2010-08-02 20:47:49 UTC (rev 5956)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java 2010-08-02 20:48:04 UTC (rev 5957)
@@ -23,6 +23,7 @@
import org.jboss.remoting.detection.AbstractDetector;
import org.jboss.remoting.detection.Detection;
+import org.jboss.remoting.util.LocalHostUtil;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -157,7 +158,7 @@
this.addr = InetAddress.getByName(defaultIP);
}
// check to see if we're running on a machine with loopback and no NIC
- InetAddress localHost = InetAddress.getLocalHost();
+ InetAddress localHost = LocalHostUtil.getLocalHost();
if(bindAddr == null && localHost.getHostAddress().equals("127.0.0.1"))
{
// use this to bind so multicast will work w/o network
More information about the jboss-remoting-commits
mailing list