Browse Source

WireGuard.js: fixup undefined CIDR

pull/939/head
Philip H 1 year ago
committed by pheiduck
parent
commit
2f89765112
  1. 2
      src/lib/WireGuard.js

2
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` : ''}\

Loading…
Cancel
Save