From f98e015ea1996ad8dc5ce0a9cc5a1a5430d94d49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 2 Jul 2012 19:42:26 +0000 Subject: [PATCH] Set it only when empty to allow custom entries again --- application/hub/class_ApplicationHelper.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/hub/class_ApplicationHelper.php b/application/hub/class_ApplicationHelper.php index db3b29921..824b83fb9 100644 --- a/application/hub/class_ApplicationHelper.php +++ b/application/hub/class_ApplicationHelper.php @@ -152,8 +152,11 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Set this application in registry Registry::getRegistry()->addInstance('app', $this); - // Determine external IP - $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalIp()); + // Is no external IP set? + if ($this->getConfigInstance()->getConfigEntry('external_ip') == '') { + // Determine external IP + $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalIp()); + } // END - if // Default response is console $response = $this->getResponseTypeFromSystem(); -- 2.39.5