Fix CLI FTP command - correct config attribute access for ftp_server
This commit is contained in:
parent
18fbb8250a
commit
9c91188c09
@ -77,10 +77,11 @@ def status():
|
||||
def ftp(host: str, port: int):
|
||||
"""Start FTP server"""
|
||||
config = Config()
|
||||
config.ftp.host = host
|
||||
config.ftp.port = port
|
||||
# Fix: Use the correct config structure - ftp_server instead of ftp
|
||||
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
|
||||
current_dir = os.path.abspath('.')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user