Put CN matching above the final recursive option merge
parent
9412bb427a
commit
fa54b7054c
|
@ -338,6 +338,11 @@ class RemoteFilesystem
|
||||||
$headers[] = 'Accept-Encoding: gzip';
|
$headers[] = 'Accept-Encoding: gzip';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
|
||||||
|
$host = parse_url($originUrl, PHP_URL_HOST);
|
||||||
|
$this->options['ssl']['CN_match'] = $host;
|
||||||
|
$this->options['ssl']['SNI_server_name'] = $host;
|
||||||
|
|
||||||
$options = array_replace_recursive($this->options, $additionalOptions);
|
$options = array_replace_recursive($this->options, $additionalOptions);
|
||||||
|
|
||||||
if ($this->io->hasAuthentication($originUrl)) {
|
if ($this->io->hasAuthentication($originUrl)) {
|
||||||
|
@ -357,17 +362,6 @@ class RemoteFilesystem
|
||||||
$options['http']['header'][] = $header;
|
$options['http']['header'][] = $header;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
|
|
||||||
$host = parse_url($originUrl, PHP_URL_HOST);
|
|
||||||
$this->options['ssl']['CN_match'] = $host;
|
|
||||||
$this->options['ssl']['SNI_server_name'] = $host;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Setup TLS options CN_match and SNI_server_name based on URL given
|
|
||||||
*/
|
|
||||||
$parts = parse_url($originUrl);
|
|
||||||
|
|
||||||
|
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue