How the method evaluates the return value it’s now clear for me but it’s not 
clear the reason to have such return value.
From my point of view a method called getRemoteAddress should return just an IP 
address.

Otherwise any code that needs to use the remote client ip must use a workaround 
to clenup it.
 

> Il giorno 23 ago 2019, alle ore 03:41, yw yw <wy96...@gmail.com> ha scritto:
> 
> The method getRemoteAddress of the RemotingConnection returns
> InetSocketAddress::toString which calls InetAddress::toString. And the
> comment says:
> 
> Converts this IP address to a {@code String}. The
> * string returned is of the form: hostname / literal IP
> * address.
> *
> * If the host name is unresolved, no reverse name service lookup
> * is performed. The hostname part will be represented by an empty string.
> 
> 
> Modanese, Riccardo <riccardo.modan...@eurotech.com.invalid> 于2019年8月22日周四
> 下午4:48写道:
> 
>> Hello, the method getRemoteAddress of the RemotingConnection object
>> returns an address starting with '/'.
>> 
>> Is it working as expected (and in this case is there any reason to have an
>> address starting with '/') or it's a bug?
>> 
>> 
>> 
>> Regards
>> 
>> Riccardo
>> 

Reply via email to