* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseHubSystem extends BaseFrameworkSystem {
+ /**
+ * Seperator for all bootstrap node entries
+ */
+ const BOOTSTRAP_NODES_SEPERATOR = ';';
+
/**
* An instance of a node
*/
// All upper hubs, these are currently the bootstrap nodes and later on prepended list-nodes
case NetworkPackage::NETWORK_TARGET_UPPER_HUBS:
// Get all bootstrap nodes
- foreach (explode(';', $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) {
+ foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPERATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) {
// Add the entry
$listInstance->addEntry('ip_port', $node);
} // END - foreach
$isFound = false;
// Run through all configured IPs
- foreach (explode(',', $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $ipPort) {
+ foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPERATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $ipPort) {
// Split it up in IP/port
$ipPortArray = explode(':', $ipPort);