From: Roland Häder Date: Wed, 20 Apr 2011 05:43:27 +0000 (+0000) Subject: Removed deprecated code (see last commit why) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2dac8c1ddfb2ae0ee6ceea404a3997238539e05;p=hub.git Removed deprecated code (see last commit why) --- diff --git a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php index bf591a848..5e504daa0 100644 --- a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php +++ b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php @@ -80,18 +80,8 @@ class PackageRecipientDiscovery extends BaseHubDiscovery implements Discoverable $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);