fix bug affecting upnp port forwarding: forward to user-selected port if chosen
authorForrest Voight <forrest@forre.st>
Sun, 14 Aug 2011 07:36:40 +0000 (03:36 -0400)
committerForrest Voight <forrest@forre.st>
Sun, 14 Aug 2011 07:36:40 +0000 (03:36 -0400)
p2pool/main.py

index 4c6276f..0ee8315 100644 (file)
@@ -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:")