From: Roland Häder Date: Sat, 19 May 2012 17:48:04 +0000 (+0000) Subject: acquireSelfIPAddress() does now return IP address X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1c641d7e5544db22b260ca49da0ec19eea8373e;p=core.git acquireSelfIPAddress() does now return IP address --- diff --git a/inc/classes/main/console/class_ConsoleTools.php b/inc/classes/main/console/class_ConsoleTools.php index 5c2c87c2..60476a1e 100644 --- a/inc/classes/main/console/class_ConsoleTools.php +++ b/inc/classes/main/console/class_ConsoleTools.php @@ -84,7 +84,7 @@ class ConsoleTools extends BaseFrameworkSystem { * Aquires the IP address of this host by reading the /etc/hostname file * and solving it. It is now stored in configuration * - * @return void + * @return $ip Aquired IP address */ public static function acquireSelfIPAddress () { // Local IP by default @@ -131,6 +131,9 @@ class ConsoleTools extends BaseFrameworkSystem { // Set it in configuration FrameworkConfiguration::getSelfInstance()->setServerAddress($ip); + + // Return it + return $ip; } /**