mirror of
https://github.com/Mailu/Mailu.git
synced 2025-04-23 12:08:54 +02:00
make it save as a file, name {domain}-zonefile.txt
This commit is contained in:
parent
83f3b7722c
commit
1504483677
@ -84,7 +84,7 @@ def domain_download_zonefile(domain_name):
|
||||
final = final + domain.dns_tlsa
|
||||
for i in domain.dns_autoconfig:
|
||||
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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user