From f34cd88de1dfec9631ca31d6abe204b431f5b587 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Fri, 12 Apr 2024 12:44:30 +0200 Subject: [PATCH] allow multiple binds --- README.md | 5 +++-- src/main.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5592c0..e9b9240 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ ```json { - "host": "127.0.0.1", - "port": 9250, + "binds": [ + "127.0.0.1:9250" + ], "log": "-", "buffer-size": "4KiB", "max-size": "2GB", diff --git a/src/main.py b/src/main.py index e82cbe8..ab870e9 100644 --- a/src/main.py +++ b/src/main.py @@ -90,7 +90,7 @@ def main(): asyncio.run(serve( api, Config().from_mapping( - bind=[f"{CONFIG['host']}:{CONFIG['port']}"], + bind=CONFIG['binds'], accesslog='-' ) ))