Commit 998ed3be authored by lucashedding's avatar lucashedding Committed by mikeytown2

Issue #2337071 by heddn: Disable Server Name Indication (SNI) by default.

parent 5c392912
......@@ -655,6 +655,12 @@ function httprl_set_socket($uri, &$options, $proxy_server, &$result) {
if ($port != 443) {
$options['headers']['Host'] .= ':' . $port;
}
// Disable SNI support as this causes issues with old versions of OpenSSL.
// By default httprl doesn't validate the SSL certificate, so this is OK.
if (empty($options['context'])) {
$options['context'] = stream_context_create(array('ssl' => array('SNI_enabled' => FALSE)));
}
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment