mirror of https://github.com/apache/activemq.git
AMQ-2094 Apply patch to allow binding to specific IP address
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@749464 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d458a5d17f
commit
563ec4433a
|
@ -130,11 +130,8 @@ public class TcpTransportServer extends TransportServerThreadSupport implements
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue