diff --git a/src/hms123311.c b/src/hms123311.c index d643d1ea770e36fc7e970c0482c8bb2fafa082af..e50d188632b5fe0be51ba04fa8f92c85d9b2fa72 100644 --- a/src/hms123311.c +++ b/src/hms123311.c @@ -144,6 +144,7 @@ HMS_connect (const char *format, ...) curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer);