Finally a partner help me.
He added the proxy line in the following function in /application/helpers/common_helper.php
function getUpdateInfo()
{
if (getGlobalSetting('SessionName')=='') {
setGlobalSetting('SessionName', \Yii::app()->securityManager->generateRandomString(64));
}
$url = "
update.limesurvey.org/
?" . \Yii::app()->urlManager->createPathInfo(array(
'build' => Yii::app()->getConfig("buildnumber"),
/**
* Optionally enable this after user consent. For now it remains disabled.
*/
// 'php' => PHP_VERSION,
'id' => md5(getGlobalSetting('SessionName')),
'crosscheck' => 'true' // Passed as string, should be changed.
), '=', '&');
$opts = array(
'http' => array(
'method' => 'GET',
'user_agent' => "LimeSurvey ".Yii::app()->getConfig("versionnumber")." build ".Yii::app()->getConfig("buildnumber"),
'proxy' => '
proxy.dominio.net:3128
',
'timeout' => 10,
'ignore_errors' => true
)
);
$body = file_get_contents($url, false, stream_context_create($opts));
if ($body != false && (null === $updateInfo = json_decode($body, true))) {
$updateInfo = array(
'errorhtml' => $body,
'errorcode' => $http_response_header
);
}
return $updateInfo;
}