]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/console/class_ConsoleTools.php
acquireSelfIPAddress() does now return IP address
[core.git] / 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;
        }
 
        /**