mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Support HTTPS connection
Support HTTPS connection from server to server and server to cilent. 다양한 환경에서 적용하기 위해서 SSL 호스트 검증은 하지 못할듯 합니다. -- curl 이라면 가능하다고는 하는데..
This commit is contained in:
parent
c58b5bf4bf
commit
b8fd20bbae
8 changed files with 46 additions and 11 deletions
|
|
@ -40,7 +40,11 @@ class XmlGenerater
|
|||
function getXmlDoc(&$params)
|
||||
{
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$request_config = array(
|
||||
'ssl_verify_peer' => FALSE,
|
||||
'ssl_verify_host' => FALSE
|
||||
);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||
if(!$buff)
|
||||
{
|
||||
return;
|
||||
|
|
@ -133,6 +137,11 @@ class autoinstall extends ModuleObject
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
// 2015.12.31 replace HTTP connection to HTTPS connection.
|
||||
if($config->downloadServer !== _XE_DOWNLOAD_SERVER_)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -179,6 +188,12 @@ class autoinstall extends ModuleObject
|
|||
$oDB->addColumn('autoinstall_packages', 'have_instance', 'char', '1', 'N', TRUE);
|
||||
}
|
||||
|
||||
// 2015.12.31 replace HTTP connection to HTTPS connection.
|
||||
if($config->downloadServer !== _XE_DOWNLOAD_SERVER_)
|
||||
{
|
||||
$config->downloadServer = _XE_DOWNLOAD_SERVER_;
|
||||
$oModuleController->insertModuleConfig('autoinstall', $config);
|
||||
}
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue