Browse Source

feat: change dns to be server wide instead of client only

pull/446/head
Gabriel Fiori 4 years ago
parent
commit
7df047a75d
  1. 2
      src/lib/WireGuard.js

2
src/lib/WireGuard.js

@ -95,6 +95,7 @@ module.exports = class WireGuard {
[Interface]
PrivateKey = ${config.server.privateKey}
Address = ${config.server.address}/24
DNS = ${WG_DEFAULT_DNS}
ListenPort = 51820
PreUp = ${WG_PRE_UP}
PostUp = ${WG_POST_UP}
@ -200,7 +201,6 @@ AllowedIPs = ${client.address}/32`;
[Interface]
PrivateKey = ${client.privateKey}
Address = ${client.address}/24
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''}
${WG_MTU ? `MTU = ${WG_MTU}` : ''}
[Peer]

Loading…
Cancel
Save