WireGuard.js: fixup undefined CIDR

This commit is contained in:
Philip H 2024-03-05 17:55:10 +01:00 committed by pheiduck
parent cb45bc1c43
commit 2f89765112
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ ${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
return `[Interface]
PrivateKey = ${client.privateKey}
Address = ${client.address}/24
Address = ${client.address}/${config.server.cidrBlock}
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}\n` : ''}\
${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\