]> git.mxchange.org Git - hub.git/commitdiff
External IP is now auto-detected
authorRoland Häder <roland@mxchange.org>
Sun, 27 May 2012 14:45:08 +0000 (14:45 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 27 May 2012 14:45:08 +0000 (14:45 +0000)
application/hub/config-local.php-dist
application/hub/config.php

index a977f0362a0464c7bae543ff8f81c54cc76b819b..ae800e2373ff7f6dff1a96da424f61a1c615395d 100644 (file)
@@ -49,7 +49,7 @@ $cfg->setConfigEntry('node_udp_listen_port', 9060);
 $cfg->setConfigEntry('node_default_mode', 'regular');
 
 // CFG: EXTERNAL-IP
-$cfg->setConfigEntry('external_ip', '');
+// Use this if auto-detection fails! $cfg->setConfigEntry('external_ip', '');
 
 // CFG: HUB-BOOTSTRAP-NODES
 $cfg->setConfigEntry('hub_bootstrap_nodes', '188.138.90.169:9060');
index 23a62717eb2d2716f43f65c52a9fc6783f16771e..529c34ca2a1d913563a37604b9105c4db5930868 100644 (file)
@@ -602,7 +602,7 @@ $cfg->setConfigEntry('node_id', '');
 $cfg->setConfigEntry('session_id', '');
 
 // CFG: EXTERNAL-IP
-$cfg->setConfigEntry('external_ip', '');
+$cfg->setConfigEntry('external_ip', ConsoleTools::determineExternalIp());
 
 // CFG: INTERNAL-IP
 $cfg->setConfigEntry('internal_ip', ConsoleTools::acquireSelfIPAddress());