Merge pull request #806 from wg-easy/fix/newline

Fix/newline
This commit is contained in:
Peter Lewis 2024-02-02 21:21:17 +00:00 committed by GitHub
commit 3ee2260714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,12 +196,11 @@ AllowedIPs = ${client.address}/32`;
const config = await this.getConfig();
const client = await this.getClient({ clientId });
return `
[Interface]
return `[Interface]
PrivateKey = ${client.privateKey}
Address = ${client.address}/24
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''}
${WG_MTU ? `MTU = ${WG_MTU}` : ''}
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}\n` : ''}\
${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\
[Peer]
PublicKey = ${config.server.publicKey}