aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_put.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-06 22:10:44 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-06 22:17:04 +0300
commit58274f943df237ee608da8849969739c365dd664 (patch)
tree77e79e12a7971e899f2305f155014a1bff27b7df /src/testzzuf/test_put.c
parent8851d88e40a33bb942165c45d4e9d439038106a9 (diff)
downloadlibmicrohttpd-58274f943df237ee608da8849969739c365dd664.tar.gz
libmicrohttpd-58274f943df237ee608da8849969739c365dd664.zip
Used "127.0.0.1" instead of "localhost" in all tests to avoid accidental try by IPv6
Diffstat (limited to 'src/testzzuf/test_put.c')
-rw-r--r--src/testzzuf/test_put.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c
index 85785c35..f76cde58 100644
--- a/src/testzzuf/test_put.c
+++ b/src/testzzuf/test_put.c
@@ -138,7 +138,7 @@ testInternalPut ()
138 { 138 {
139 fprintf (stderr, "."); 139 fprintf (stderr, ".");
140 c = curl_easy_init (); 140 c = curl_easy_init ();
141 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); 141 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world");
142 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 142 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
143 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 143 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
144 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 144 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);
@@ -189,7 +189,7 @@ testMultithreadedPut ()
189 { 189 {
190 fprintf (stderr, "."); 190 fprintf (stderr, ".");
191 c = curl_easy_init (); 191 c = curl_easy_init ();
192 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); 192 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world");
193 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 193 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
194 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 194 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
195 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 195 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);
@@ -258,7 +258,7 @@ testExternalPut ()
258 fprintf (stderr, "."); 258 fprintf (stderr, ".");
259 259
260 c = curl_easy_init (); 260 c = curl_easy_init ();
261 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); 261 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world");
262 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 262 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
263 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 263 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
264 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 264 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);