Merge branch '113-fix-curl-issue-with-ipv6' into 'master'
Resolve "Fix Curl issue with ipv6" Closes #113 See merge request jankstudio/resq!96
This commit is contained in:
commit
f62a7fa21f
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,12 @@ class MapTools
|
|||
|
||||
|
||||
// query google maps api
|
||||
$res = $client->request('GET', $maps_url, ['query' => $gmaps_params]);
|
||||
$res = $client->request('GET', $maps_url, [
|
||||
'query' => $gmaps_params,
|
||||
'curl' => [
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4
|
||||
],
|
||||
]);
|
||||
|
||||
return $res->getBody();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue