From abe04fa30307b2d659364d477d2ae9637334ab43 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Mar 2007 18:05:12 +0000 Subject: Do not add sparious , Submitted-by: Ying Wong ying_AT_apdir.com --- packages/snort/snort.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']} "; } } -- cgit v1.2.3