aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bandwidthd/bandwidthd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bandwidthd/bandwidthd.inc')
-rw-r--r--packages/bandwidthd/bandwidthd.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index d04f14c9..5b487a39 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -71,12 +71,14 @@ function bandwidthd_install_config() {
if($skip_intervals)
$skip_intervals = "skip_intervals $skip_intervals\n";
+ $ifdescrs = $config['installedpackages']['bandwidthd']['config'][0]['active_interface'];
+
/* initialize to "" */
$subnets = "";
- $ifdescrs = array("lan", "wan");
- for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
- $ifdescrs['opt' . $j] = "opt" . $j;
- }
+ //$ifdescrs = array("lan", "wan");
+ //for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
+ //$ifdescrs['opt' . $j] = "opt" . $j;
+ //}
foreach($ifdescrs as $int) {
/* calculate interface subnet information */
$ifcfg = &$config['interfaces'][$int];