diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-04 20:37:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-04 20:37:14 +0000 |
commit | dd24c5c96309a9f9a64f5743e99f34c5e4e3a874 (patch) | |
tree | 51456779bb43113c0a20841c3ac31cb678471c59 /packages/bandwidthd | |
parent | c0bd1a4e9e57393a7d2b2fc9c0b61bfdce5b26f0 (diff) | |
download | pfsense-packages-dd24c5c96309a9f9a64f5743e99f34c5e4e3a874.tar.gz pfsense-packages-dd24c5c96309a9f9a64f5743e99f34c5e4e3a874.tar.bz2 pfsense-packages-dd24c5c96309a9f9a64f5743e99f34c5e4e3a874.zip |
Do not install blank subnet line
Diffstat (limited to 'packages/bandwidthd')
-rw-r--r-- | packages/bandwidthd/bandwidthd.inc | 3 |
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"; } } |