Skip to content

Commit

Permalink
GossipRouter listens on 0.0.0.0 if bind_addr is null
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 16, 2020
1 parent bf7f2bd commit bc0fc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/stack/GossipRouter.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class GossipRouter extends ReceiverAdapter implements ConnectionListener
public GossipRouter(String bind_addr, int local_port) {
this.port=local_port;
try {
this.bind_addr=InetAddress.getByName(bind_addr);
this.bind_addr=bind_addr != null? InetAddress.getByName(bind_addr) : null;
}
catch(UnknownHostException e) {
log.error("failed setting bind address %s: %s", bind_addr, e);
Expand Down

0 comments on commit bc0fc1b

Please sign in to comment.