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:
@ -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
|
||||
|
Reference in New Issue
Block a user