diff --git a/gophersrv.py b/gophersrv.py index ab93f68..303c9cd 100644 --- a/gophersrv.py +++ b/gophersrv.py @@ -32,6 +32,7 @@ import socket import stat import subprocess import threading +import time # Config port = 7070 @@ -309,5 +310,5 @@ while True: if not any(map(lambda x: matchaddr(toint(ip), x), blacklist)): Serve(conn).start() else: - print 'Blacklisted IP %s' % ip + print '%s: Blacklisted IP %s' % (time.strftime('%Y-%m-%d %H:%M'), ip) conn.close()