Fix bind address if passed via command line.
This commit is contained in:
parent
9ecea804c9
commit
6c16cbb590
|
@ -74,9 +74,11 @@ def run(
|
||||||
app.add_routes(routes)
|
app.add_routes(routes)
|
||||||
addr = []
|
addr = []
|
||||||
if address is not None:
|
if address is not None:
|
||||||
addr.append(address)
|
addr = [address]
|
||||||
if conf["http"].get("bind_addr"):
|
elif conf["http"].get("bind_addr"):
|
||||||
addr.extend(conf["http"]["bind_addr"])
|
addr.extend(conf["http"]["bind_addr"])
|
||||||
|
else:
|
||||||
|
addr = ["127.0.0.1"]
|
||||||
if port is None:
|
if port is None:
|
||||||
port = conf["http"]["port"]
|
port = conf["http"]["port"]
|
||||||
alog.debug("Starting app with: addr -> %s, port -> %d", addr, port)
|
alog.debug("Starting app with: addr -> %s, port -> %d", addr, port)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user