diff --git a/modules/processing/network.py b/modules/processing/network.py index 5f1984421ed..149ced7d0e5 100644 --- a/modules/processing/network.py +++ b/modules/processing/network.py @@ -776,8 +776,6 @@ def run(self): offset = file.tell() continue - self._add_hosts(connection) - if ip.p == dpkt.ip.IP_PROTO_TCP: tcp = ip.data if not isinstance(tcp, dpkt.tcp.TCP): @@ -843,6 +841,7 @@ def run(self): self._icmp_dissect(connection, icmp) offset = file.tell() + self._add_hosts(connection) except AttributeError: continue except dpkt.dpkt.NeedData: