git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8201863
)
fix bug affecting upnp port forwarding: forward to user-selected port if chosen
author
Forrest Voight
<forrest@forre.st>
Sun, 14 Aug 2011 07:36:40 +0000 (
03:36
-0400)
committer
Forrest Voight
<forrest@forre.st>
Sun, 14 Aug 2011 07:36:40 +0000 (
03:36
-0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
4c6276f
..
0ee8315
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-325,7
+325,7
@@
def main(args):
if not is_lan:
continue
pm = yield portmapper.get_port_mapper()
- yield pm._upnp.add_port_mapping(lan_ip, args.net.P2P_PORT, args.net.P2P_PORT, 'p2pool', 'TCP')
+ yield pm._upnp.add_port_mapping(lan_ip, args.p2pool_port, args.p2pool_port, 'p2pool', 'TCP') # XXX try to forward external correct port?
except:
if p2pool_init.DEBUG:
log.err(None, "UPnP error:")