Skip to content

Commit

Permalink
bootstrap: fix send_from_directory parameters for new flask version
Browse files Browse the repository at this point in the history
  • Loading branch information
maxux committed Aug 27, 2024
1 parent b8e44cc commit 8e1f656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ def text_reply(payload):
@app.route('/kernel/<path:filename>', methods=['GET'])
def download(filename):
print("[+] downloading: %s" % filename)
return send_from_directory(directory=config['kernel-path'], filename=filename)
return send_from_directory(config['kernel-path'], filename)

@app.route('/kernel/net/<path:filename>', methods=['GET'])
def download_net(filename):
print("[+] downloading (network based): %s" % filename)
return send_from_directory(directory=config['kernel-net-path'], filename=filename)
return send_from_directory(config['kernel-net-path'], filename)

#
# Generic Image Generator
Expand Down

0 comments on commit 8e1f656

Please sign in to comment.