// Set this application in registry
Registry::getRegistry()->addInstance('app', $this);
+ // Determine external IP
+ $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalIp());
+
// Default response is console
$response = $this->getResponseTypeFromSystem();
$responseType = $this->getResponseTypeFromSystem();
*/
// Some hub-specific configuration like port hostname where we will listen, etc.
-$cfg = FrameworkConfiguration::getInstance();
+$cfg = FrameworkConfiguration::getSelfInstance();
// CFG: NODE-LISTEN-ADDR
$cfg->setConfigEntry('node_listen_addr', '0.0.0.0');
// CFG: SESSION-ID
$cfg->setConfigEntry('session_id', '');
-// CFG: EXTERNAL-IP
-$cfg->setConfigEntry('external_ip', ConsoleTools::determineExternalIp());
-
// CFG: INTERNAL-IP
$cfg->setConfigEntry('internal_ip', ConsoleTools::acquireSelfIPAddress());