From c29de396ab9b3fde494bbbae480011583f57dcdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 27 May 2012 14:45:08 +0000 Subject: [PATCH] External IP is now auto-detected --- application/hub/config-local.php-dist | 2 +- application/hub/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/hub/config-local.php-dist b/application/hub/config-local.php-dist index a977f0362..ae800e237 100644 --- a/application/hub/config-local.php-dist +++ b/application/hub/config-local.php-dist @@ -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'); diff --git a/application/hub/config.php b/application/hub/config.php index 23a62717e..529c34ca2 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -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()); -- 2.39.5