$ip = ConsoleTools::determineExternalIp();
}
- // Get mode
- $mode = Registry::getRegistry()->getInstance('app')->getRequestInstance()->getRequestElement('mode');
-
- // Set prefix
- $prefix = '';
- if ($mode != 'regular') {
- // Is a special node
- $prefix = $mode . '_';
- } // END - if
-
// Get port and add it
- $ipPort = $ip . ':' . $this->getConfigInstance()->getConfigEntry($prefix . 'node_' . $this->determineProtocolByPackageData($packageData) . '_listen_port');
+ $ipPort = $ip . ':' . $this->getConfigInstance()->getConfigEntry('node_' . $this->determineProtocolByPackageData($packageData) . '_listen_port');
// Add it to the list
$listInstance->addEntry('ip_port', $ipPort);