diff --git a/waf3.py b/waf3.py index c71fead..59033b3 100644 --- a/waf3.py +++ b/waf3.py @@ -67,11 +67,11 @@ def report_attacks(): ) hosts = {} for a in Attack.select(): - # print(a.host) if a.host in hosts: hosts[a.host] = hosts[a.host] + 1 else: hosts[a.host] = 1 + print(a.host) sorted_hosts = dict(sorted(hosts.items(), key=lambda x:x[1]))