diff --git a/api/app.py b/api/app.py index 19787c0..7db7e18 100644 --- a/api/app.py +++ b/api/app.py @@ -74,9 +74,11 @@ def run( app.add_routes(routes) addr = [] if address is not None: - addr.append(address) - if conf["http"].get("bind_addr"): + addr = [address] + elif conf["http"].get("bind_addr"): addr.extend(conf["http"]["bind_addr"]) + else: + addr = ["127.0.0.1"] if port is None: port = conf["http"]["port"] alog.debug("Starting app with: addr -> %s, port -> %d", addr, port)