1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-04-21 12:07:02 +02:00

make it save as a file, name {domain}-zonefile.txt

This commit is contained in:
Miłosz Thiede 2023-10-29 11:50:36 +01:00
parent 83f3b7722c
commit 1504483677

View File

@ -84,7 +84,7 @@ def domain_download_zonefile(domain_name):
final = final + domain.dns_tlsa final = final + domain.dns_tlsa
for i in domain.dns_autoconfig: for i in domain.dns_autoconfig:
final = final + i+"\n" final = final + i+"\n"
return flask.Response(final,content_type="text/plain") return flask.Response(final,content_type="text/plain",headers={'Content-disposition': 'attachment; filename='+domain.name+'-zonefile.txt'})
@ui.route('/domain/genkeys/<domain_name>', methods=['GET', 'POST']) @ui.route('/domain/genkeys/<domain_name>', methods=['GET', 'POST'])