Commit b1a7e9f7 authored by Thomas Capricelli's avatar Thomas Capricelli
Browse files

expects raw string

parent 788c4615dc86
......@@ -169,7 +169,7 @@ class PostfixAuthAttempt(RegexFilter, MemoryMixin):
>>> f.check_line("May 14 02:00:20 verdi postfix/smtpd[28126]: disconnect from unknown[121.239.19.186] ehlo=1 auth=0/1 commands=1/2 ")
'121.239.19.186'
"""
REGEX_FILTER = re.compile(POSTFIX_PREFIX + r" disconnect from unknown\[" + IPV4ORIPV6 + "\] ehlo=1 auth=0/1 commands=1/2")
REGEX_FILTER = re.compile(POSTFIX_PREFIX + r" disconnect from unknown\[" + IPV4ORIPV6 + r"\] ehlo=1 auth=0/1 commands=1/2")
reason = settings.REASON_SMTP_AUTH_ATTEMPT
def check_line(self, line):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment