- saas patch #1

This commit is contained in:
James 2012-10-23 18:47:15 -04:00
parent 9cd389d16b
commit b8d6132b52
6 changed files with 69 additions and 25 deletions

View file

@ -686,6 +686,22 @@ class ApiController extends Zend_Controller_Action
Logging::info("Registered Component: ".$component."@".$remoteAddr);
Application_Model_ServiceRegister::Register($component, $remoteAddr);
//send ip, subdomain
if (Application_Model_Preference::GetPlanLevel() != 'disabled'){
if ($component == "pypo"){
$split = explode('.', $_SERVER['SERVER_NAME']);
if (count($split) > 0){
$subDomain = $split[0];
$md = array();
$md["sub_domain"] = $subDomain;
$md["pypo_ip"] = $remoteAddr;
Application_Model_RabbitMq::SendMessageToHaproxyConfigDaemon($md);
}
}
}
}
public function updateLiquidsoapStatusAction()