Browse Source
Merge branch 'WeeJeWel:master' into master
pull/278/head
cany748
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
README.md
-
src/lib/Server.js
|
|
@ -5,6 +5,7 @@ |
|
|
|
[](https://hub.docker.com/r/weejewel/wg-easy) |
|
|
|
[](https://hub.docker.com/r/weejewel/wg-easy) |
|
|
|
[](https://github.com/sponsors/WeeJeWel) |
|
|
|
 |
|
|
|
|
|
|
|
You have found the easiest way to install & manage WireGuard on any Linux host! |
|
|
|
|
|
|
|
|
|
@ -105,7 +105,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); |
|
|
|
})) |
|
|
|