require($cfg->getConfigEntry('base_path') . 'inc/database.php');
// Get's our IP address
-$_SERVER['SERVER_ADDR'] = ConsoleTools::acquireSelfIPAddress();
+ConsoleTools::acquireSelfIPAddress();
// [EOF]
?>
*/
public function doBootstrapping () {
// Now check if the IP address matches one of the bootstrap nodes
- if ($this->ifAddressMatchesBootstrappingNodes($_SERVER['SERVER_ADDR'])) {
+ if ($this->ifAddressMatchesBootstrappingNodes($this->getConfigInstance()->getServerAddress())) {
// Get our port from configuration
$ourPort = $this->getConfigInstance()->getConfigEntry('node_tcp_listen_port');
}
} else {
// IP does match, but no port
- $this->debugOutput('BOOTSTRAP: WARNING: Our IP ' . $_SERVER['SERVER_ADDR'] . ' does match a known bootstrap-node but not the port ' . $ourPort . '/' . $bootPort . '.');
+ $this->debugOutput('BOOTSTRAP: WARNING: Our IP ' . $this->getConfigInstance()->getServerAddress() . ' does match a known bootstrap-node but not the port ' . $ourPort . '/' . $bootPort . '.');
}
} else {
// Node does not match any know bootstrap-node
- $this->debugOutput('BOOTSTRAP: WARNING: Our IP ' . $_SERVER['SERVER_ADDR'] . ' does not match any known bootstrap-nodes.');
+ $this->debugOutput('BOOTSTRAP: WARNING: Our IP ' . $this->getConfigInstance()->getServerAddress() . ' does not match any known bootstrap-nodes.');
}
// This might not be all...