Bind API server to the configured host instead of localhost

This commit is contained in:
Andrey Beletsky 2020-07-14 14:56:47 +07:00
parent 9c5e2a8c8d
commit 86069b10ca

View file

@ -111,7 +111,7 @@ class Daemon:
async def start(self): async def start(self):
self.console.starting() self.console.starting()
await self.runner.setup() await self.runner.setup()
site = TCPSite(self.runner, 'localhost', self.conf.api_port) site = TCPSite(self.runner, self.conf.api_host, self.conf.api_port)
await site.start() await site.start()
await self.service.start() await self.service.start()