// CFG: NODE-UDP-LISTEN-PORT
$cfg->setConfigEntry('node_udp_listen_port', 9060);
-// CFG: BOOT-NODE-TCP-LISTEN-PORT
-$cfg->setConfigEntry('boot_node_tcp_listen_port', 9061);
-
-// CFG: BOOT-NODE-UDP-LISTEN-PORT
-$cfg->setConfigEntry('boot_node_udp_listen_port', 9061);
-
// CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
$cfg->setConfigEntry('node_default_mode', 'regular');
// CFG: NODE-UDP-LISTEN-PORT
$cfg->setConfigEntry('node_udp_listen_port', 9060);
-// CFG: BOOT-NODE-TCP-LISTEN-PORT
-$cfg->setConfigEntry('boot_node_tcp_listen_port', 9061);
-
-// CFG: BOOT-NODE-UDP-LISTEN-PORT
-$cfg->setConfigEntry('boot_node_udp_listen_port', 9061);
-
// CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
$cfg->setConfigEntry('node_default_mode', 'regular');
// Now check if the IP address matches one of the bootstrap nodes
if ($this->ifAddressMatchesBootstrappingNodes($this->getConfigInstance()->detectServerAddress())) {
// Get our port from configuration
- $ourPort = $this->getConfigInstance()->getConfigEntry('boot_node_tcp_listen_port');
+ $ourPort = $this->getConfigInstance()->getConfigEntry('node_tcp_listen_port');
// Extract port
$bootPort = substr($this->getBootIpPort(), -strlen($ourPort), strlen($ourPort));
// Setup address and port
$listenerInstance->setListenAddressByConfiguration('node_listen_addr');
- if ($this instanceof HubBootNode) {
- // Bootstrap have different listening port
- $listenerInstance->setListenPortByConfiguration('boot_node_tcp_listen_port');
- } else {
- // All other nodes use the default port
- $listenerInstance->setListenPortByConfiguration('node_tcp_listen_port');
- }
+
+ /*
+ * All nodes can now use the same configuration entry because it can be
+ * customized in config-local.php.
+ */
+ $listenerInstance->setListenPortByConfiguration('node_tcp_listen_port');
// Initialize the listener
$listenerInstance->initListener();
// Setup address and port
$listenerInstance->setListenAddressByConfiguration('node_listen_addr');
- if ($this instanceof HubBootNode) {
- // Bootstrap have different listening port
- $listenerInstance->setListenPortByConfiguration('boot_node_udp_listen_port');
- } else {
- // All other nodes use the default port
- $listenerInstance->setListenPortByConfiguration('node_udp_listen_port');
- }
+
+ /*
+ * All nodes can now use the same configuration entry because it can be
+ * customized in config-local.php.
+ */
+ $listenerInstance->setListenPortByConfiguration('node_udp_listen_port');
// Initialize the listener
$listenerInstance->initListener();