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:
Kendrick Chan 2018-05-07 14:58:25 +00:00
commit f62a7fa21f

View file

@ -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();
}