aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bandwidthd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bandwidthd')
-rw-r--r--packages/bandwidthd/bandwidthd.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index d0241e1c..f82d62d9 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -80,7 +80,8 @@ function bandwidthd_install_config() {
if($subnet)
$subnets .= "subnet {$subnet}/32\n";
} else {
- $subnets .= "subnet {$subnet}/{$ifcfg['subnet']}\n";
+ if($subnet)
+ $subnets .= "subnet {$subnet}/{$ifcfg['subnet']}\n";
}
}