diff options
Diffstat (limited to 'src/testcurl/daemontest_get_sendfile.c')
-rw-r--r-- | src/testcurl/daemontest_get_sendfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/daemontest_get_sendfile.c b/src/testcurl/daemontest_get_sendfile.c index 622b7af2..48c543b2 100644 --- a/src/testcurl/daemontest_get_sendfile.c +++ b/src/testcurl/daemontest_get_sendfile.c | |||
@@ -121,7 +121,7 @@ testInternalGet () | |||
121 | if (d == NULL) | 121 | if (d == NULL) |
122 | return 1; | 122 | return 1; |
123 | c = curl_easy_init (); | 123 | c = curl_easy_init (); |
124 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11080/"); | 124 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11080/"); |
125 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 125 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
126 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 126 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
127 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 127 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
@@ -170,7 +170,7 @@ testMultithreadedGet () | |||
170 | if (d == NULL) | 170 | if (d == NULL) |
171 | return 16; | 171 | return 16; |
172 | c = curl_easy_init (); | 172 | c = curl_easy_init (); |
173 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/"); | 173 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/"); |
174 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 174 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
175 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 175 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
176 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 176 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
@@ -220,7 +220,7 @@ testMultithreadedPoolGet () | |||
220 | if (d == NULL) | 220 | if (d == NULL) |
221 | return 16; | 221 | return 16; |
222 | c = curl_easy_init (); | 222 | c = curl_easy_init (); |
223 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/"); | 223 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/"); |
224 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 224 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
225 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 225 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
226 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 226 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
@@ -279,7 +279,7 @@ testExternalGet () | |||
279 | if (d == NULL) | 279 | if (d == NULL) |
280 | return 256; | 280 | return 256; |
281 | c = curl_easy_init (); | 281 | c = curl_easy_init (); |
282 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1082/"); | 282 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1082/"); |
283 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 283 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
284 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 284 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
285 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 285 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
@@ -411,7 +411,7 @@ testUnknownPortGet () | |||
411 | if (addr.sin_family != AF_INET) | 411 | if (addr.sin_family != AF_INET) |
412 | return 26214; | 412 | return 26214; |
413 | 413 | ||
414 | snprintf(buf, sizeof(buf), "http://localhost:%hu/", | 414 | snprintf(buf, sizeof(buf), "http://127.0.0.1:%hu/", |
415 | ntohs(addr.sin_port)); | 415 | ntohs(addr.sin_port)); |
416 | 416 | ||
417 | c = curl_easy_init (); | 417 | c = curl_easy_init (); |