Fix main.py FTP command - pass correct config object to FTPServerManager
This commit is contained in:
parent
58db3065a9
commit
eddfa7cb8e
@ -35,7 +35,7 @@ def main():
|
||||
app.run(debug=False, host='0.0.0.0', port=5000)
|
||||
elif command == "ftp":
|
||||
# Start FTP server
|
||||
ftp_manager = FTPServerManager(config.ftp)
|
||||
ftp_manager = FTPServerManager(config)
|
||||
# Add current directory as allowed directory
|
||||
current_dir = os.path.abspath('.')
|
||||
ftp_manager.add_allowed_directory(current_dir)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user