Improve the detection of localhost interfaces for the HTTP test suite