Merge pull request #658 from sayak-brm/master

[BUGFIX] Prevent duplicate entries for reported networks
This commit is contained in:
evilsocket
2019-11-26 12:04:00 +01:00
committed by GitHub

View File

@ -67,7 +67,8 @@ class Grid(plugins.Plugin):
logging.info("grid plugin loaded.")
def set_reported(self, reported, net_id):
reported.append(net_id)
if net_id not in reported:
reported.append(net_id)
self.report.update(data={'reported': reported})
def check_inbox(self, agent):