mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
Comment regexp
This commit is contained in:
parent
8c6d28ce95
commit
9cafcf1caf
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ def get_counts(input, config):
|
|||
counts = collections.defaultdict(lambda: collections.defaultdict(int))
|
||||
# Typical line looks like:
|
||||
# Jun 12 06:24:14 sender postfix/smtp[9045]: Untrusted TLS connection established to valid-example-recipient.com[192.168.33.7]:25: TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)
|
||||
# ([^[]*) <--- any group of characters that is not "["
|
||||
r = re.compile("([A-Za-z]+) TLS connection established to ([^[]*)")
|
||||
for line in sys.stdin:
|
||||
result = r.search(line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue