On 11-10-12 19:43, Greg Trasuk wrote:
Seems like a good idea. I have a feeling I've written something similar
in the past. I'll take a look around...
Have you found that code? Feel free to implement
LocalHostLookup.getLocalHost(). It would be nice if we end up with a
pluggable getLocalHost resolver. I'm thinking of overriding the hostname
on a badly configured PC and taking newly acquired DHCP leases into
account at the same time.
Greg.
On Thu, 2012-10-11 at 08:05, Simon IJskes - QCG wrote:
Shall we build a localHost lookup class for use river-wide, that allows
for a pluggable best hostname/ipaddress finder?
And replace all InetAddress.getLocalHost() with a call
LocalHostLookup.getLocalHost() ?
We can plugin, enable/disable the check host=127.0.0.1 from there.
Gr. Simon
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397