Merge pull request #162 from adlai/master
authorForrest Voight <forrest.voight@gmail.com>
Wed, 29 Jan 2014 19:59:43 +0000 (11:59 -0800)
committerForrest Voight <forrest.voight@gmail.com>
Wed, 29 Jan 2014 19:59:43 +0000 (11:59 -0800)
IRC announce through worker endpoint

p2pool/main.py

index 42635f1..9c121fd 100644 (file)
@@ -289,7 +289,7 @@ def main(args, net, datadir_path, merged_urls, worker_endpoint):
                     print 'IRC connection lost:', reason.getErrorMessage()
             class IRCClientFactory(protocol.ReconnectingClientFactory):
                 protocol = IRCClient
-            reactor.connectTCP("irc.freenode.net", 6667, IRCClientFactory())
+            reactor.connectTCP("irc.freenode.net", 6667, IRCClientFactory(), bindAddress=(worker_endpoint[0], 0))
         
         @defer.inlineCallbacks
         def status_thread():