feat: Modify HTTP API listen host to 0.0.0.0
This commit is contained in:
@@ -101,7 +101,7 @@ async def http_init(source: DataSource):
|
|||||||
app.add_routes(routes)
|
app.add_routes(routes)
|
||||||
runner = web.AppRunner(app)
|
runner = web.AppRunner(app)
|
||||||
await runner.setup()
|
await runner.setup()
|
||||||
site = web.TCPSite(runner, 'localhost', port)
|
site = web.TCPSite(runner, '0.0.0.0', port)
|
||||||
try:
|
try:
|
||||||
await site.start()
|
await site.start()
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|||||||
Reference in New Issue
Block a user