Skip to content

Commit

Permalink
https://issues.redhat.com/browse/JGRP-2754
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jan 29, 2024
1 parent 817bacc commit f4a70ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/org/jgroups/JChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,7 @@ protected JChannel startStack(String cluster_name) throws Exception {
return this;
}

/**
* Generates and sets local_addr. Sends down a REMOVE_ADDRESS (if existing address was present) and
* a SET_LOCAL_ADDRESS
*/
/** Generates local_addr. Sends down a REMOVE_ADDRESS (if existing address was present) and a SET_LOCAL_ADDRESS */
protected JChannel setAddress() {
if(name == null || name.isEmpty()) // generate a logical name if not set
name=Util.generateLocalName();
Expand Down
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/TUNNEL.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void init() throws Exception {
throw new IllegalStateException("gossip_router_hosts needs to contain at least one address of a GossipRouter");
log.debug("gossip routers are %s", gossip_routers);
stubManager=RouterStubManager.emptyGossipClientStubManager(log, timer).useNio(this.use_nio);
sock=getSocketFactory().createDatagramSocket("jgroups.tunnel.ucast_sock", bind_port, bind_addr);
sock=getSocketFactory().createDatagramSocket("jgroups.tunnel.ucast_sock", 0, bind_addr);
}

@Override
Expand Down

0 comments on commit f4a70ce

Please sign in to comment.