Fix main.py FTP command - pass correct config object to FTPServerManager

This commit is contained in:
Jarian Cottingham 2026-02-02 21:21:39 -06:00
parent 58db3065a9
commit eddfa7cb8e

View File

@ -35,7 +35,7 @@ def main():
app.run(debug=False, host='0.0.0.0', port=5000) app.run(debug=False, host='0.0.0.0', port=5000)
elif command == "ftp": elif command == "ftp":
# Start FTP server # Start FTP server
ftp_manager = FTPServerManager(config.ftp) ftp_manager = FTPServerManager(config)
# Add current directory as allowed directory # Add current directory as allowed directory
current_dir = os.path.abspath('.') current_dir = os.path.abspath('.')
ftp_manager.add_allowed_directory(current_dir) ftp_manager.add_allowed_directory(current_dir)