From c7cc1aca732ca7149d59a8d8e0cb2e431e24574f Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Mon, 2 Feb 2026 21:30:44 -0600 Subject: [PATCH] Change FTP default port to non-privileged port 2122 --- factsdb/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factsdb/cli.py b/factsdb/cli.py index 45e43d9..ba60592 100644 --- a/factsdb/cli.py +++ b/factsdb/cli.py @@ -77,7 +77,7 @@ def status(): @cli.command() @click.option('--host', '-h', default='0.0.0.0', help='FTP server host') -@click.option('--port', '-p', default=21, type=int, help='FTP server port') +@click.option('--port', '-p', default=2122, type=int, help='FTP server port') def ftp(host: str, port: int): """Start FTP server""" config = Config() @@ -107,7 +107,7 @@ def ftp(host: str, port: int): click.echo("FTP Server stopped") except Exception as e: - click.echo(f"Error starting FTP server: {str(e)}") + click.click.echo(f"Error starting FTP server: {str(e)}") @cli.command() def tables():