[jboss-remoting-commits] JBoss Remoting SVN: r5922 - remoting2/branches/2.x/src/main/org/jboss/remoting/detection/multicast.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu Jul 22 11:54:27 EDT 2010


Author: ron.sigal at jboss.com
Date: 2010-07-22 11:54:27 -0400 (Thu, 22 Jul 2010)
New Revision: 5922

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java
Log:
JBREM-1234: Uses localhost obtained in AbstractDetector's static block.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java	2010-07-22 15:53:20 UTC (rev 5921)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/detection/multicast/MulticastDetector.java	2010-07-22 15:54:27 UTC (rev 5922)
@@ -372,43 +372,6 @@
       }
    }
    
-   static private InetAddress getLocalHost() throws UnknownHostException
-   {
-      if (SecurityUtility.skipAccessControl())
-      {
-         try
-         {
-            return InetAddress.getLocalHost();
-         }
-         catch (IOException e)
-         {
-            return InetAddress.getByName("127.0.0.1");
-         }
-      }
-
-      try
-      {
-         return (InetAddress) AccessController.doPrivileged( new PrivilegedExceptionAction()
-         {
-            public Object run() throws IOException
-            {
-               try
-               {
-                  return InetAddress.getLocalHost();
-               }
-               catch (IOException e)
-               {
-                  return InetAddress.getByName("127.0.0.1");
-               }
-            }
-         });
-      }
-      catch (PrivilegedActionException e)
-      {
-         throw (UnknownHostException) e.getCause();
-      }
-   }
-   
    static private InetAddress getAddressByName(final String host) throws UnknownHostException
    {
       if (SecurityUtility.skipAccessControl())



More information about the jboss-remoting-commits mailing list