From 46c54d51efed46cf3a66269383957423dc68d684 Mon Sep 17 00:00:00 2001 From: DimaZhukovsky Date: Thu, 19 Sep 2024 18:34:46 +0200 Subject: [PATCH] Added default value for verify_peer_name param --- lib/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Connection.php b/lib/Connection.php index ad5975e..e57d1bd 100644 --- a/lib/Connection.php +++ b/lib/Connection.php @@ -86,10 +86,12 @@ public function connect() $options = [ "ssl" => [ "verify_peer" => false, + "verify_peer_name" => false ], ]; if ($this->options["verify_cert"]) { $options["ssl"]["verify_peer"] = true; + $options["ssl"]["verify_peer_name"] = true; $options["ssl"]["verify_depth"] = 5; $options["ssl"]["cafile"] = \dirname(\dirname(__FILE__)) . "/data/ca-certificates.crt";