mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
fixed download configuration file for peer
This commit is contained in:
parent
e42ecf3c99
commit
5ade5176c0
@ -1056,7 +1056,7 @@ def generate_qrcode(config_name):
|
|||||||
sem.release()
|
sem.release()
|
||||||
return redirect("/configuration/" + config_name)
|
return redirect("/configuration/" + config_name)
|
||||||
# Download configuration file
|
# Download configuration file
|
||||||
@app.route('/<config_name>', methods=['GET'])
|
@app.route('/download/<config_name>', methods=['GET'])
|
||||||
def download(config_name):
|
def download(config_name):
|
||||||
print(request.headers.get('User-Agent'))
|
print(request.headers.get('User-Agent'))
|
||||||
id = request.args.get('id')
|
id = request.args.get('id')
|
||||||
|
Loading…
Reference in New Issue
Block a user