mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 19:08:50 +03:00
Added curl_verify_peer option in application.ini, default is true
This commit is contained in:
parent
61ebcb6ed4
commit
620e75b014
2 changed files with 3 additions and 0 deletions
|
|
@ -441,6 +441,7 @@ Enables caching in the system'),
|
|||
'folders_spec_limit' => array(50),
|
||||
'curl_proxy' => array(''),
|
||||
'curl_proxy_auth' => array(''),
|
||||
'curl_verify_peer' => array(true),
|
||||
'custom_login_link' => array(''),
|
||||
'custom_logout_link' => array(''),
|
||||
'http_client_ip_check_proxy' => array(false),
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ abstract class Repository
|
|||
$oHTTP = HTTP\Request::factory(/*'socket' or 'curl'*/);
|
||||
$oHTTP->proxy = \RainLoop\Api::Config()->Get('labs', 'curl_proxy', '');
|
||||
$oHTTP->proxy_auth = \RainLoop\Api::Config()->Get('labs', 'curl_proxy_auth', '');
|
||||
$oHTTP->verify_peer = \RainLoop\Api::Config()->Get('labs', 'curl_verify_peer', true);
|
||||
$oHTTP->max_response_kb = 0;
|
||||
$oHTTP->timeout = 15; // timeout in seconds.
|
||||
$oResponse = $oHTTP->doRequest('GET', static::BASE_URL . $path);
|
||||
|
|
@ -37,6 +38,7 @@ abstract class Repository
|
|||
$oHTTP = HTTP\Request::factory(/*'socket' or 'curl'*/);
|
||||
$oHTTP->proxy = \RainLoop\Api::Config()->Get('labs', 'curl_proxy', '');
|
||||
$oHTTP->proxy_auth = \RainLoop\Api::Config()->Get('labs', 'curl_proxy_auth', '');
|
||||
$oHTTP->verify_peer = \RainLoop\Api::Config()->Get('labs', 'curl_verify_peer', true);
|
||||
$oHTTP->max_response_kb = 0;
|
||||
$oHTTP->timeout = 15; // timeout in seconds.
|
||||
$oHTTP->streamBodyTo($pDest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue