This commit is contained in:
Baobhan Sith
2025-05-10 17:51:32 +08:00
parent 6b1b1b216a
commit d37158144e
4 changed files with 55 additions and 16 deletions
@@ -511,7 +511,7 @@ async setCaptchaConfig(req: Request, res: Response): Promise<void> {
async exportAllConnections(req: Request, res: Response): Promise<void> {
try {
console.log('[控制器] 收到导出所有连接的请求。');
const encryptedZipBuffer = await exportConnectionsAsEncryptedZip();
const encryptedZipBuffer = await exportConnectionsAsEncryptedZip(true);
res.setHeader('Content-Type', 'application/zip');
res.setHeader('Content-Disposition', 'attachment; filename="nexus_connections_export.zip"');