From 507c5914e1dacbb314a4bb04c1efa3f68d68c18a Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 22 Nov 2013 19:56:15 -0500 Subject: [PATCH] fix spacing issue with code block --- .../writing/about/fail2ban-honeypot/index.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/contents/writing/about/fail2ban-honeypot/index.md b/contents/writing/about/fail2ban-honeypot/index.md index 7fb5ee4..1740845 100644 --- a/contents/writing/about/fail2ban-honeypot/index.md +++ b/contents/writing/about/fail2ban-honeypot/index.md @@ -49,18 +49,18 @@ class HoneyThread(threading.Thread): print 'Listening on: ', port super(HoneyThread, self).__init__() - def run(self): - while True: - channel, details = self.sock.accept() - logstr = ( - 'Connection from %s:%s on port %s\r\n' % - (details[0], details[1], self.port) - ) - self.logfile.write('%s\r\n' % logstr) - print logstr - self.logfile.flush() - channel.send('You Just Got Stuck In Some Honey') - channel.close() + def run(self): + while True: + channel, details = self.sock.accept() + logstr = ( + 'Connection from %s:%s on port %s\r\n' % + (details[0], details[1], self.port) + ) + self.logfile.write('%s\r\n' % logstr) + print logstr + self.logfile.flush() + channel.send('You Just Got Stuck In Some Honey') + channel.close() ports = []