|
|
|
@ -94,7 +94,7 @@ module.exports = class WireGuard { |
|
|
|
# Server |
|
|
|
[Interface] |
|
|
|
PrivateKey = ${config.server.privateKey} |
|
|
|
Address = ${config.server.address}/24 |
|
|
|
Address = ${config.server.address}/16 |
|
|
|
ListenPort = 51820 |
|
|
|
PreUp = ${WG_PRE_UP} |
|
|
|
PostUp = ${WG_POST_UP} |
|
|
|
@ -199,7 +199,7 @@ AllowedIPs = ${client.address}/32`; |
|
|
|
return ` |
|
|
|
[Interface] |
|
|
|
PrivateKey = ${client.privateKey} |
|
|
|
Address = ${client.address}/24 |
|
|
|
Address = ${client.address}/16 |
|
|
|
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''} |
|
|
|
${WG_MTU ? `MTU = ${WG_MTU}` : ''} |
|
|
|
|
|
|
|
|