Use None instead of localhost
See #211. Some don't have localhost mapped, and we should also bind to IPv6 interfaces. Thanks to gaoyaxing24 for testing.
This commit is contained in:
parent
28764936c4
commit
92ba67037f
@ -198,7 +198,7 @@ class Controller(util.LoggedClass):
|
|||||||
async def main_loop(self):
|
async def main_loop(self):
|
||||||
'''Controller main loop.'''
|
'''Controller main loop.'''
|
||||||
if self.env.rpc_port is not None:
|
if self.env.rpc_port is not None:
|
||||||
await self.start_server('RPC', 'localhost', self.env.rpc_port)
|
await self.start_server('RPC', None, self.env.rpc_port)
|
||||||
self.ensure_future(self.bp.main_loop())
|
self.ensure_future(self.bp.main_loop())
|
||||||
self.ensure_future(self.wait_for_bp_catchup())
|
self.ensure_future(self.wait_for_bp_catchup())
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user