]> git.mxchange.org Git - hub.git/commitdiff
Set it only when empty to allow custom entries again
authorRoland Häder <roland@mxchange.org>
Mon, 2 Jul 2012 19:42:26 +0000 (19:42 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 2 Jul 2012 19:42:26 +0000 (19:42 +0000)
application/hub/class_ApplicationHelper.php

index db3b2992185d0e6c940ed2bd8f54d846c3e9625e..824b83fb9804e6b018a1b8afa2afaeb9e940916a 100644 (file)
@@ -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();