From eda9dd5d9524a5e4eebe9c53a1172f447b4e92ea Mon Sep 17 00:00:00 2001 From: Emile Nijssen Date: Sun, 3 Jul 2022 14:37:21 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dbc941dd..6daca1b2 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Docker](https://img.shields.io/docker/v/weejewel/wg-easy/latest)](https://hub.docker.com/r/weejewel/wg-easy) [![Docker](https://img.shields.io/docker/pulls/weejewel/wg-easy.svg)](https://hub.docker.com/r/weejewel/wg-easy) [![Sponsor](https://img.shields.io/github/sponsors/weejewel)](https://github.com/sponsors/WeeJeWel) +![GitHub Stars](https://img.shields.io/github/stars/weejewel/wg-easy) You have found the easiest way to install & manage WireGuard on any Linux host! From bc320fbf792e61658b42292c836ba0b03284d02a Mon Sep 17 00:00:00 2001 From: Emile Nijssen Date: Sun, 3 Jul 2022 21:38:22 +0200 Subject: [PATCH 2/2] fixes #306 --- src/lib/Server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Server.js b/src/lib/Server.js index c893d7d5..f8f380bd 100644 --- a/src/lib/Server.js +++ b/src/lib/Server.js @@ -104,7 +104,7 @@ module.exports = class Server { .replace(/(-{2,}|-$)/g, '-') .replace(/-$/, '') .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.send(config); }))