[ 
https://issues.apache.org/jira/browse/TUBEMQ-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17120852#comment-17120852
 ] 

Guocheng Zhang commented on TUBEMQ-171:
---------------------------------------

I modified the acquisition logic of the hostName of Master and Broker:
1. If the hostName parameter is filled in the broker.ini / master.ini 
configuration file and is not blank, the filled value is taken and no value 
check is performed;
2. If the hostName parameter is not configured in the configuration file, or 
the parameter is detected as empty:
2.1 Master gets any IPV4 address of this machine,
2.2 Broker cannot arbitrarily extract IP addresses, because Broker needs to 
configure node information on the Master and needs to specify the specific 
Broker's clear IP, so:
       2.2.1 Broker obtains a valid IPV4 address on the designated network card 
as the local IP address;
       2.2.2 If the value of BrokerId is 0, obtain a valid IPV4 address on the 
specified network card for calculation.

> master and broker support config hostname with “localhost” or "127.0.0.1" or 
> dns address
> ----------------------------------------------------------------------------------------
>
>                 Key: TUBEMQ-171
>                 URL: https://issues.apache.org/jira/browse/TUBEMQ-171
>             Project: Apache TubeMQ
>          Issue Type: Sub-task
>          Components: Server
>            Reporter: dockerzhang
>            Assignee: Guocheng Zhang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to