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):
|
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('.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user