mongodb/mongo-java-driver — pull request #65 by rocketraman (2012-03-13 00:44:57+00:00)
Title: Remove host name override for "localhost"

When resolving "localhost", the code was instead calling InetAddress.getLocalHost(),
which determines the host name to resolve by retrieving the name of the host from
the system.

This changes the resolution from localhost (which will result in 127.0.0.1 on most
systems) to the machine's host name (which will result in the machine's external
IP address on most systems).

The new behavior leaves the resolution of "localhost" to the underlying OS as the
user would expect.