Resolve "Fix Curl issue with ipv6" #907
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,12 @@ class MapTools
|
||||||
|
|
||||||
|
|
||||||
// query google maps api
|
// 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();
|
return $res->getBody();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue