Commit 4d98dd5b authored by Petr Špaček's avatar Petr Špaček

ednscomp2pickle: fix root zone processing

parent 1b3eda0f
Pipeline #40769 passed with stage
in 1 minute and 18 seconds
......@@ -14,7 +14,7 @@ from evalzone import EDNSResult
def parse_nsip_line(line: str) -> Tuple[str, Dict[str, List[str]]]:
"""parse one line from ednscomp log"""
matches = re.match('^[^ ]+\\. @(?P<ip>[^ ]+) \\([^)]+\\): (?P<results>dns=.*)$', line)
matches = re.match('^[^ ]*\\. @(?P<ip>[^ ]+) \\([^)]+\\): (?P<results>dns=.*)$', line)
if not matches:
raise ValueError('line "{}" does not have expected format, skipping'.format(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