WireGuard.js: fixup undefined CIDR
This commit is contained in:
parent
cb45bc1c43
commit
2f89765112
|
@ -204,7 +204,7 @@ ${client.preSharedKey ? `PresharedKey = ${client.preSharedKey}\n` : ''
|
||||||
|
|
||||||
return `[Interface]
|
return `[Interface]
|
||||||
PrivateKey = ${client.privateKey}
|
PrivateKey = ${client.privateKey}
|
||||||
Address = ${client.address}/24
|
Address = ${client.address}/${config.server.cidrBlock}
|
||||||
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}\n` : ''}\
|
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}\n` : ''}\
|
||||||
${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\
|
${WG_MTU ? `MTU = ${WG_MTU}\n` : ''}\
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue