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

This commit is contained in:
Marina Glancy
2017-10-13 12:18:15 +08:00
parent ff93f3915a
commit 0233c84101
+2 -1
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.