Compare commits

..

3 Commits

Author SHA1 Message Date
92baf351a5 Merge branch 'allow-specifying-listening-host' 2022-03-12 02:06:32 +01:00
9e7c2c5a49 Merge branch 'privatization-fixes' 2022-03-12 02:06:18 +01:00
f598c3056d Allow setting the host parameter
In order to run in a Docker container, it is necessary to listen on all interfaces (`0.0.0.0`).
So make it possible to set the host.

Fixes #1

Signed-off-by: Jacob Kiers <code@kiers.eu>
2022-03-12 00:50:21 +01:00

View File

@ -84,7 +84,7 @@ class ListenCommand(CliCommand):
@classmethod @classmethod
def setup_arguments(cls, parser: argparse.ArgumentParser) -> None: def setup_arguments(cls, parser: argparse.ArgumentParser) -> None:
parser.add_argument( parser.add_argument(
"--host", "-h", "--host",
metavar="HOST", metavar="HOST",
help="Host to listen on.", help="Host to listen on.",
default=str(cm().listen_host or "127.0.0.1"), default=str(cm().listen_host or "127.0.0.1"),