I think its just a legacy view that was never updated to reflect the
bound address. We could be showing all interfaces, the InetAddress
defaults as well as the bound address from ServerInfo.
Galder Zamarreno wrote:
Hi,
I'm wondering whether the current implementation of
ServerInfo.getHostName() and ServerInfo.getHostAddress() are of any
real use, specially when the value passed via -b is different to
InetAddress.getLocalHost() which leads to confusion: You bind to X but
ServerInfo shows host name or host address being Y.
Besides, there's no easy way of checking what's the IP to which the
server is bound other than browsing through the system properties.
So, I'd suggest changing getHostName/getHostAddress to be based on
jboss.bind.address system property and this is not set fall back on
InetAddress.getLocalHost().
Thoughts?
Cheers,