Explicitly bind to both IPv4 and IPv6.

This commit is contained in:
Neil Booth 2017-08-21 20:07:08 +09:00
parent 69c1535d13
commit 4d2456e4b4

View File

@ -198,7 +198,8 @@ class Controller(util.LoggedClass):
async def main_loop(self):
'''Controller main loop.'''
if self.env.rpc_port is not None:
await self.start_server('RPC', None, self.env.rpc_port)
await self.start_server('RPC', ('127.0.0.1', '::1'),
self.env.rpc_port)
self.ensure_future(self.bp.main_loop())
self.ensure_future(self.wait_for_bp_catchup())