Index: serf-1.2.1/test/test_util.c =================================================================== --- serf-1.2.1.orig/test/test_util.c 2013-07-12 11:37:18.791411161 +0200 +++ serf-1.2.1/test/test_util.c 2013-07-12 11:37:18.783411161 +0200 @@ -27,14 +27,14 @@ /* Server setup function(s) */ -#define HTTP_SERV_URL "http://localhost:" SERV_PORT_STR -#define HTTPS_SERV_URL "https://localhost:" SERV_PORT_STR +#define HTTP_SERV_URL "http://127.0.0.1:" SERV_PORT_STR +#define HTTPS_SERV_URL "https://127.0.0.1:" SERV_PORT_STR static apr_status_t default_server_address(apr_sockaddr_t **address, apr_pool_t *pool) { return apr_sockaddr_info_get(address, - "localhost", APR_UNSPEC, SERV_PORT, 0, + "127.0.0.1", APR_INET, SERV_PORT, 0, pool); } @@ -42,7 +42,7 @@ apr_pool_t *pool) { return apr_sockaddr_info_get(address, - "localhost", APR_UNSPEC, PROXY_PORT, 0, + "127.0.0.1", APR_INET, PROXY_PORT, 0, pool); } Index: serf-1.2.1/test/serf_request.c =================================================================== --- serf-1.2.1.orig/test/serf_request.c 2013-07-12 11:42:17.615396050 +0200 +++ serf-1.2.1/test/serf_request.c 2013-07-12 11:42:29.779395435 +0200 @@ -65,7 +65,7 @@ hdrs_bkt = serf_bucket_request_get_headers(req_bkt); /* FIXME: Shouldn't we be able to figure out the host ourselves? */ - serf_bucket_headers_setn(hdrs_bkt, "Host", "localhost"); + serf_bucket_headers_setn(hdrs_bkt, "Host", "127.0.0.1"); serf_bucket_headers_setn(hdrs_bkt, "User-Agent", "Serf/" SERF_VERSION_STRING); Index: serf-1.2.1/test/test_context.c =================================================================== --- serf-1.2.1.orig/test/test_context.c 2013-07-12 11:42:12.711396298 +0200 +++ serf-1.2.1/test/test_context.c 2013-07-12 11:42:33.803395231 +0200 @@ -459,8 +459,8 @@ apr_status_t status; test_server_message_t message_list[] = { - {"GET http://localhost:" SERV_PORT_STR " HTTP/1.1" CRLF\ - "Host: localhost:" SERV_PORT_STR CRLF\ + {"GET http://127.0.0.1:" SERV_PORT_STR " HTTP/1.1" CRLF\ + "Host: 127.0.0.1:" SERV_PORT_STR CRLF\ "Transfer-Encoding: chunked" CRLF\ CRLF\ "1" CRLF\ Index: serf-1.2.1/test/test_serf.h =================================================================== --- serf-1.2.1.orig/test/test_serf.h 2013-07-12 11:42:06.907396591 +0200 +++ serf-1.2.1/test/test_serf.h 2013-07-12 11:42:39.031394967 +0200 @@ -52,7 +52,7 @@ #define CHUNKED_REQUEST(len, body)\ "GET / HTTP/1.1" CRLF\ - "Host: localhost:12345" CRLF\ + "Host: 127.0.0.1:12345" CRLF\ "Transfer-Encoding: chunked" CRLF\ CRLF\ #len CRLF\