diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 640741cd..6c7f0d59 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -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` : ''}\