1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

clear linedata if 'from' found

This commit is contained in:
Kelly Brazil
2023-10-23 17:36:25 -07:00
parent 54def8ef49
commit 264fcd40ad

View File

@ -276,6 +276,7 @@ def parse(data, raw=False, quiet=False):
if len(linedata) > 1 and ' '.join(linedata).startswith('(') and ' '.join(linedata).endswith(')'):
output_line['from'] = ' '.join(linedata)[1:-1]
raw_output.append(output_line)
linedata = []
continue
# if just one more field, then it's the remote IP