Fix CLI FTP command - correct config attribute access for ftp_server

This commit is contained in:
Jarian Cottingham 2026-02-02 21:15:43 -06:00
parent 18fbb8250a
commit 9c91188c09

View File

@ -77,10 +77,11 @@ def status():
def ftp(host: str, port: int): def ftp(host: str, port: int):
"""Start FTP server""" """Start FTP server"""
config = Config() config = Config()
config.ftp.host = host # Fix: Use the correct config structure - ftp_server instead of ftp
config.ftp.port = port config.ftp_server.host = host
config.ftp_server.port = port
ftp_manager = FTPServerManager(config.ftp) ftp_manager = FTPServerManager(config.ftp_server)
# Add current directory as allowed directory # Add current directory as allowed directory
current_dir = os.path.abspath('.') current_dir = os.path.abspath('.')