Skip to content

Commit 221868f

Browse files
committed
Fix bugsnag-laravel#45
1 parent 2aa7541 commit 221868f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Bugsnag/Notification.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ private function postWithCurl($url, $body)
107107
curl_setopt($http, CURLOPT_CONNECTTIMEOUT, $this->config->timeout);
108108
curl_setopt($http, CURLOPT_SSL_VERIFYPEER, false);
109109
curl_setopt($http, CURLOPT_VERBOSE, false);
110-
curl_setopt($http, CURL_IPRESOLVE_V4, true);
110+
if (defined('HHVM_VERSION')) {
111+
curl_setopt($http, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
112+
} else {
113+
curl_setopt($http, CURL_IPRESOLVE_V4, true);
114+
}
111115

112116
if (!empty($this->config->curlOptions)) {
113117
foreach ($this->config->curlOptions as $option => $value) {

0 commit comments

Comments
 (0)