]> git.mxchange.org Git - core.git/commitdiff
acquireSelfIPAddress() does now return IP address
authorRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 17:48:04 +0000 (17:48 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 17:48:04 +0000 (17:48 +0000)
inc/classes/main/console/class_ConsoleTools.php

index 5c2c87c2d04520b628c38ea89f7ed6e15654c2cc..60476a1e96526bbc7099336ac2651182fced256d 100644 (file)
@@ -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;
        }
 
        /**