Change FTP default port to non-privileged port 2122
This commit is contained in:
parent
e93716b5f7
commit
c7cc1aca73
@ -77,7 +77,7 @@ def status():
|
|||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
@click.option('--host', '-h', default='0.0.0.0', help='FTP server host')
|
@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):
|
def ftp(host: str, port: int):
|
||||||
"""Start FTP server"""
|
"""Start FTP server"""
|
||||||
config = Config()
|
config = Config()
|
||||||
@ -107,7 +107,7 @@ def ftp(host: str, port: int):
|
|||||||
click.echo("FTP Server stopped")
|
click.echo("FTP Server stopped")
|
||||||
|
|
||||||
except Exception as e:
|
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()
|
@cli.command()
|
||||||
def tables():
|
def tables():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user