From: Roland Häder Date: Mon, 2 Jul 2012 19:42:26 +0000 (+0000) Subject: Set it only when empty to allow custom entries again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f98e015ea1996ad8dc5ce0a9cc5a1a5430d94d49;p=hub.git Set it only when empty to allow custom entries again --- 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();