aboutsummaryrefslogtreecommitdiffstats
path: root/libs/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/network.php')
-rw-r--r--libs/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/network.php b/libs/network.php
index 12521bf..e486fc5 100644
--- a/libs/network.php
+++ b/libs/network.php
@@ -3,7 +3,7 @@ require 'Utils/Misc.class.php';
$datas = array();
-if (!(exec('/sbin/ifconfig | awk -F " " \'{print $1}\' | sed -e \'/^$/d\'', $getInterfaces)))
+if (!(exec('/sbin/ifconfig |awk -F \'[/ |: ]\' \'{print $1}\' |sed -e \'/^$/d\'', $getInterfaces)))
{
$datas[] = array('interface' => 'N.A', 'ip' => 'N.A');
}