]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/boot/class_HubBootNode.php
Only TCP should be fine here
[hub.git] / application / hub / main / nodes / boot / class_HubBootNode.php
index 0311315c7f1af6b197618a478d1405a7354f2a53..fa8c5064a2335d175527caa693b49bac3bfb7b12 100644 (file)
@@ -58,16 +58,13 @@ class HubBootNode extends BaseHubNode implements NodeHelper {
         * @todo        add some more special bootstrap things for this boot node
         */
        public function doBootstrapping () {
-               // Output message
-               $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
-
                // Call generic (parent) bootstrapping method first
                parent::doGenericBootstrapping();
 
                // Now check if the IP address matches one of the bootstrap nodes
                if ($this->ifAddressMatchesBootstrappingNodes($_SERVER['SERVER_ADDR'])) {
                        // Get our port from configuration
-                       $ourPort = $this->getConfigInstance()->readConfig('node_listen_port');
+                       $ourPort = $this->getConfigInstance()->readConfig('node_tcp_listen_port');
 
                        // Is the port the same?
                        if (substr($this->bootIpPort, -strlen($ourPort), strlen($ourPort)) == $ourPort) {
@@ -93,9 +90,6 @@ class HubBootNode extends BaseHubNode implements NodeHelper {
 
                // This might not be all...
                $this->partialStub('Please implement more bootsrapping steps.');
-
-               // Output message
-               $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
        }
 
        /**