rackerlabs/blueflood — pull request #63 by lakshmi-kannan (2013-08-20 21:43:30+00:00)
Title: Use localhost for http test fixture

new InetSocketAddress(InetAddress.getLocalHost().getHostAddress(), port) seems like a bug.

InetSocketAddress has 3 constructors apart from default:

public InetSocketAddress(String hostname, int port) {

public InetSocketAddress(InetAddress addr, int port) {

public InetSocketAddress(int port) {

InetAddress.getLocalHost().getHostAddress() returns a string ip address which is bad.
For example, on my box this returns 127.0.1.1