Merge change I96cd6f5b into eclair

* changes:
  Make the socket test accept ::1 as a valid result for InetAddress.getByName(null) if the system is set to prefer IPv6 addresses.