From 0233c841017f46519e9bdd5bc6fe71aee8a03775 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 13 Oct 2017 12:17:32 +0800 Subject: [PATCH] MDL-58915 search_solr: connection to solr can use blocked hosts --- search/engine/solr/classes/engine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/search/engine/solr/classes/engine.php b/search/engine/solr/classes/engine.php index 50042c3bfab..76818ab0c75 100644 --- a/search/engine/solr/classes/engine.php +++ b/search/engine/solr/classes/engine.php @@ -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.