Skip to content

Commit

Permalink
Fix: sometimes ports are not available (Fortinet)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafolean committed Feb 14, 2021
1 parent f61ee7b commit 72d6c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netflowwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def _get_data(buffer):
f.data["IN_BYTES"],
f.data["PROTOCOL"],
f.data.get("DIRECTION", DIRECTION_INGRESS),
f.data["L4_DST_PORT"],
f.data["L4_SRC_PORT"],
f.data.get("L4_DST_PORT", 0), # sometimes ports are not available: https://github.com/grafolean/grafolean/issues/13
f.data.get("L4_SRC_PORT", 0),
f.data["INPUT_SNMP"],
f.data["OUTPUT_SNMP"],
address_family,
Expand Down

0 comments on commit 72d6c78

Please sign in to comment.