1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

add destination_ip to error lines

This commit is contained in:
Kelly Brazil
2021-09-21 22:47:02 -07:00
parent aeea5e8d2e
commit 39ef88078f

View File

@ -258,6 +258,7 @@ def _bsd_parse(line, s):
try: try:
output_line['bytes'] = line.split()[0] output_line['bytes'] = line.split()[0]
output_line['destination_ip'] = s.destination_ip
output_line['response_ip'] = line.split()[4].strip(':').strip('(').strip(')') output_line['response_ip'] = line.split()[4].strip(':').strip('(').strip(')')
except Exception: except Exception:
pass pass