aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 7910298d..b6ff4d29 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -235,7 +235,8 @@ function generate_snort_conf() {
if($subnet)
$home_net .= "{$subnet} ";
} else {
- $home_net .= "{$subnet}/{$ifcfg['subnet']} ";
+ if ($subnet)
+ $home_net .= "{$subnet}/{$ifcfg['subnet']} ";
}
}