git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
38d9d89
)
never ban localhost
author
Forrest Voight
<forrest@forre.st>
Wed, 31 Oct 2012 03:21:38 +0000 (23:21 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 31 Oct 2012 03:33:05 +0000 (23:33 -0400)
p2pool/p2p.py
patch
|
blob
|
history
diff --git
a/p2pool/p2p.py
b/p2pool/p2p.py
index
9c1c5d0
..
569bfbb
100644
(file)
--- a/
p2pool/p2p.py
+++ b/
p2pool/p2p.py
@@
-97,7
+97,8
@@
class Protocol(p2protocol.Protocol):
if p2pool.DEBUG:
print "Bad peer banned:", self.addr
self.transport.loseConnection()
- self.node.bans[self.transport.getPeer().host] = time.time() + 60*60
+ if self.transport.getPeer().host != '127.0.0.1': # never ban localhost
+ self.node.bans[self.transport.getPeer().host] = time.time() + 60*60
def _timeout(self):
self.timeout_delayed = None