MDL-58915 search_solr: connection to solr can use blocked hosts

This commit is contained in:
Marina Glancy 2017-10-13 12:17:32 +08:00
parent d8e9a23c48
commit 402a8e7a7a

View File

@ -1192,7 +1192,8 @@ class engine extends \core_search\engine {
return $this->curl;
}
$this->curl = new \curl();
// Connection to Solr is allowed to use 'localhost' and other potentially blocked hosts/ports.
$this->curl = new \curl(['ignoresecurity' => true]);
$options = array();
// Build the SSL options. Based on pecl-solr and general testing.