IRC announce through worker endpoint
authorAdlai Chandrasekhar <munchking@gmail.com>
Wed, 29 Jan 2014 04:46:32 +0000 (06:46 +0200)
committerAdlai Chandrasekhar <munchking@gmail.com>
Wed, 29 Jan 2014 05:14:07 +0000 (07:14 +0200)
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():