From e1c641d7e5544db22b260ca49da0ec19eea8373e Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Sat, 19 May 2012 17:48:04 +0000
Subject: [PATCH] acquireSelfIPAddress() does now return IP address

---
 inc/classes/main/console/class_ConsoleTools.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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;
 	}
 
 	/**
-- 
2.39.5