Add logging of blacklisted attempts
This commit is contained in:
parent
0d092f83c3
commit
ee7a55e9e1
|
@ -307,7 +307,7 @@ while True:
|
||||||
conn, addr = sock.accept()
|
conn, addr = sock.accept()
|
||||||
ip, port = addr
|
ip, port = addr
|
||||||
if not any(map(lambda x: matchaddr(toint(ip), x), blacklist)):
|
if not any(map(lambda x: matchaddr(toint(ip), x), blacklist)):
|
||||||
print ip, blacklist#debg
|
|
||||||
Serve(conn).start()
|
Serve(conn).start()
|
||||||
else:
|
else:
|
||||||
|
print 'Blacklisted IP %s' % ip
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
Loading…
Reference in New Issue