curl 使用 ivp4

feat/task1-c-wallet
devil 2020-01-16 16:00:18 +08:00
parent 356592d6f7
commit 9a99eb926f
1 changed files with 1 additions and 0 deletions

View File

@ -1112,6 +1112,7 @@ function CurlPost($url, $post, $is_json = false)
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_URL, $url);
// 是否 json