mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-12-23 09:39:23 +08:00
fixes #306
This commit is contained in:
parent
eda9dd5d95
commit
bc320fbf79
@ -104,7 +104,7 @@ module.exports = class Server {
|
|||||||
.replace(/(-{2,}|-$)/g, '-')
|
.replace(/(-{2,}|-$)/g, '-')
|
||||||
.replace(/-$/, '')
|
.replace(/-$/, '')
|
||||||
.substring(0, 32);
|
.substring(0, 32);
|
||||||
res.header('Content-Disposition', `attachment; filename="${configName}.conf"`);
|
res.header('Content-Disposition', `attachment; filename="${configName || clientId}.conf"`);
|
||||||
res.header('Content-Type', 'text/plain');
|
res.header('Content-Type', 'text/plain');
|
||||||
res.send(config);
|
res.send(config);
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user