Browse Source

Listen on 0.0.0.0

master
blank X 1 year ago
parent
commit
599eb29c4c
  1. 2
      streamtg.py

2
streamtg.py

@ -83,7 +83,7 @@ async def main():
await client.start(bot_token=config['telegram'].get('bot_token'))
runner = web.AppRunner(app)
await runner.setup()
site = web.TCPSite(runner, '127.0.0.1', port)
site = web.TCPSite(runner, '0.0.0.0', port)
await site.start()
await client.run_until_disconnected()

Loading…
Cancel
Save