Skip to content

Commit

Permalink
removing hard-coded host port from main
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed May 24, 2024
1 parent b8d6d8a commit ff5e575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def main(path=None):
#web.run_app(beacon, path=path, shutdown_timeout=0, ssl_context=ssl_context)
runner = web.AppRunner(beacon)
await runner.setup()
site = web.TCPSite(runner, '0.0.0.0', 5050)
site = web.TCPSite(runner, conf.beacon_host, conf.beacon_port)
await site.start()
while True:
await asyncio.sleep(3600)
Expand All @@ -185,7 +185,7 @@ async def main(path=None):
'''
runner = web.AppRunner(beacon)
await runner.setup()
site = web.TCPSite(runner, '0.0.0.0', 5050)
site = web.TCPSite(runner, conf.beacon_host, conf.beacon_port)
await site.start()
while True:
await asyncio.sleep(3600)
Expand Down

0 comments on commit ff5e575

Please sign in to comment.