mirror of https://github.com/apache/activemq.git
Fix for AMQ-5652: IdGenerator not optimal in port restricted environments.
We now support configuring via system props activemq.idgenerator.hostname and activemq.idgenerator.localport which are used as the base part of GUIDs.
This commit is contained in:
parent
b9b566918e
commit
638c1e44b1
|
@ -59,7 +59,7 @@ public class IdGenerator {
|
|||
int idGeneratorPort = 0;
|
||||
ServerSocket ss = null;
|
||||
try {
|
||||
if( hostName!=null ) {
|
||||
if( hostName==null ) {
|
||||
hostName = InetAddressUtil.getLocalHostName();
|
||||
}
|
||||
if( localPort==0 ) {
|
||||
|
|
Loading…
Reference in New Issue