From dd24c5c96309a9f9a64f5743e99f34c5e4e3a874 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 4 Feb 2007 20:37:14 +0000 Subject: Do not install blank subnet line --- packages/bandwidthd/bandwidthd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/bandwidthd') 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"; } } -- cgit v1.2.3