rushsky518 opened a new issue #1750: Display of SocketAddress
URL: https://github.com/apache/rocketmq/issues/1750
 
 
   org.apache.rocketmq.remoting.common.RemotingHelper#parseSocketAddressAddr
   ````java
       public static String parseSocketAddressAddr(SocketAddress socketAddress) 
{
           if (socketAddress != null) {
               final String addr = socketAddress.toString();
   
               if (addr.length() > 0) {
                   return addr.substring(1);
               }
           }
           return "";
       }
   ````
   If hostname is not null, the variable addr is of the form: hostname / 
literal IP address
   
   
![image](https://user-images.githubusercontent.com/20531420/73335406-3f2cde00-42aa-11ea-9a4e-adc67a7e5f54.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to