aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/vnstat2/vnstat2.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc
index ff8b84a2..efa2afd4 100644
--- a/config/vnstat2/vnstat2.inc
+++ b/config/vnstat2/vnstat2.inc
@@ -51,8 +51,7 @@ function vnstat_install_config() {
$ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
}
foreach ($ifdescrs as $ifdescr => $ifname):
- $ifinfo = get_interface_info($ifdescr);
- $real_nic_names = convert_friendly_interface_to_real_interface_name($ifname);
+ $real_nic_names = get_real_interface($ifdescr);
array_push($array_of_real_nic_names, $real_nic_names);
endforeach;
// Get already nic's assigned to vnstat