feat: Modify HTTP API listen host to 0.0.0.0

This commit is contained in:
LWR
2023-08-08 20:50:38 +08:00
parent 5792f798ed
commit 43bf411ee1

View File

@@ -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: