git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f32c550
)
don't display default ports in /peer_addresses
author
Forrest Voight
<forrest.voight@gmail.com>
Thu, 5 Jan 2012 20:02:29 +0000 (15:02 -0500)
committer
Forrest Voight
<forrest.voight@gmail.com>
Thu, 5 Jan 2012 20:02:29 +0000 (15:02 -0500)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
89d7607
..
96712ce
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-620,7
+620,7
@@
def main(args, net, datadir_path):
))
def get_peer_addresses():
- return ' '.join(peer.transport.getPeer().host + ':' + str(peer.transport.getPeer().port) for peer in p2p_node.peers.itervalues())
+ return ' '.join(peer.transport.getPeer().host + (':' + str(peer.transport.getPeer().port) if peer.transport.getPeer().port != net.P2P_PORT else '') for peer in p2p_node.peers.itervalues())
class WebInterface(resource.Resource):
def __init__(self, func, mime_type):