Skip to content

Commit

Permalink
CurlMultiConnection should verify SSL host and peer by default
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jan 13, 2015
1 parent 0a064c7 commit 8c22a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elasticsearch/Connections/CurlMultiConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ private function generateCurlOpts($connectionParams)
CURLOPT_TIMEOUT_MS => 1000,
CURLOPT_CONNECTTIMEOUT_MS => 1000,
CURLOPT_HEADER => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_TCP_NODELAY => false
);

Expand Down

0 comments on commit 8c22a82

Please sign in to comment.