IP and hosts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

IP and hosts

Sebastien DIAZ
Actually you have two notions as localaddr and addr.

The local adress transformed in InetAdress (when the host is set)   is
extracted from the code InetAddress.getByName(hostName).

that it is wrong when the host is set by an ip.
In case of an ip, the localaddr transformation should be
InetAddress.getByAddress(ipAddr)

As explained in the bug
https://issues.apache.org/jira/browse/IGNITE-3221

Regards

S DIAZ
Reply | Threaded
Open this post in threaded view
|

Re: IP and hosts

yzhdanov
Sebastian, can you please provide a pull request or a patch so I can get
better understanding of the idea. What IP do you suggest to use?

--Yakov

2016-06-07 9:43 GMT-04:00 Sebastien DIAZ <[hidden email]>:

> Actually you have two notions as localaddr and addr.
>
> The local adress transformed in InetAdress (when the host is set)   is
> extracted from the code InetAddress.getByName(hostName).
>
> that it is wrong when the host is set by an ip.
> In case of an ip, the localaddr transformation should be
> InetAddress.getByAddress(ipAddr)
>
> As explained in the bug
> https://issues.apache.org/jira/browse/IGNITE-3221
>
> Regards
>
> S DIAZ
>