aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/bandwidthd/bandwidthd.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc
index 6f61527b..3aa53694 100644
--- a/config/bandwidthd/bandwidthd.inc
+++ b/config/bandwidthd/bandwidthd.inc
@@ -103,7 +103,8 @@ function bandwidthd_install_config() {
if(is_array($subnets_custom)) {
foreach($subnets_custom as $sub) {
- $subnets .= "subnet {$sub}\n";
+ if (!empty($sub) && is_subnet($sub))
+ $subnets .= "subnet {$sub}\n";
}
}