ENH: force using IPv4

JIRA: STUDIO-5009

Change-Id: I7e439474e4dd521556d3321b772cd9d57d3a3100
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-10-31 09:05:02 +08:00 committed by Lane.Wei
parent 539da6ba30
commit 65c693ae24
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ Http::priv::priv(const std::string &url)
#ifdef __WINDOWS__
::curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_2);
#endif
::curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
}