Permalink
Browse files

postscreen_stats.py: fix IP filter

  • Loading branch information...
1 parent 0a28dbf commit 86a25350986d3d01b6dacd9592c9d24d5324d23d Julien Vehent committed Jun 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 postscreen_stats.py
View
@@ -113,7 +113,7 @@ def action_filter(self,filter):
# VARIABLES
IP_REGEXP = "((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}" \
"(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
-IP_FILTER = "."
+IP_FILTER = " "
ACTION_FILTER = None
NOW = datetime.datetime.now()
YEAR = NOW.year
@@ -189,7 +189,7 @@ def action_filter(self,filter):
# Get postscreen logs only
if "/postscreen[" in line:
# apply the user defilter filter
- if re.match(IP_FILTER,line):
+ if IP_FILTER in line:
# parse the log line
line_fields = line.split(None, LOG_CURSOR+1)

0 comments on commit 86a2535

Please sign in to comment.