Add logging of blacklisted attempts

This commit is contained in:
Juhani Haverinen 2016-07-24 20:43:30 +03:00
parent 0d092f83c3
commit ee7a55e9e1
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ while True:
conn, addr = sock.accept()
ip, port = addr
if not any(map(lambda x: matchaddr(toint(ip), x), blacklist)):
print ip, blacklist#debg
Serve(conn).start()
else:
print 'Blacklisted IP %s' % ip
conn.close()