activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r749464 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
Date Mon, 02 Mar 2009 23:07:22 GMT
Author: djencks
Date: Mon Mar  2 23:07:22 2009
New Revision: 749464

URL: http://svn.apache.org/viewvc?rev=749464&view=rev
Log:
AMQ-2094 Apply patch to allow binding to specific IP address

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java?rev=749464&r1=749463&r2=749464&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
Mon Mar  2 23:07:22 2009
@@ -130,11 +130,8 @@
         InetAddress addr = InetAddress.getByName(host);
 
         try {
-            if (host.trim().equals("localhost") || addr.equals(InetAddress.getLocalHost()))
{
-                this.serverSocket = serverSocketFactory.createServerSocket(bind.getPort(),
backlog);
-            } else {
-                this.serverSocket = serverSocketFactory.createServerSocket(bind.getPort(),
backlog, addr);
-            }
+
+            this.serverSocket = serverSocketFactory.createServerSocket(bind.getPort(), backlog,
addr);
             configureServerSocket(this.serverSocket);
             
         } catch (IOException e) {



Mime
View raw message