X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fclass_ApplicationHelper.php;h=a99055086c52c919fecc524c995b678581798f4a;hb=e68827851c52084ced0b6f03fc825dd4802647e3;hp=6ee84878739f623d34ebb7257180454db085086b;hpb=dfa91e1b5e2d0a3f68c133b3bec4fcb34e5e9c96;p=hub.git diff --git a/application/hub/class_ApplicationHelper.php b/application/hub/class_ApplicationHelper.php index 6ee848787..a99055086 100644 --- a/application/hub/class_ApplicationHelper.php +++ b/application/hub/class_ApplicationHelper.php @@ -22,7 +22,7 @@ * * @author Roland Haeder * @version 0.0 - * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2012 Hub Developer Team + * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2014 Hub Developer Team * @license GNU GPL 3.0 or any newer version * * This program is free software: you can redistribute it and/or modify @@ -152,10 +152,10 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Set this application in registry Registry::getRegistry()->addInstance('app', $this); - // Is no external IP set? - if ($this->getConfigInstance()->getConfigEntry('external_ip') == '') { - // Determine external IP - $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalIp()); + // Is no external address set? + if ($this->getConfigInstance()->getConfigEntry('external_address') == '') { + // Determine external address + $this->getConfigInstance()->setConfigEntry('external_address', HubTools::determineOwnExternalAddress()); } // END - if // Default response is console