Browse Source

fix WG_MTU

pull/169/head
Emile Nijssen 3 years ago
parent
commit
e1582ec678
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -192,9 +192,7 @@ AllowedIPs = ${client.address}/32`;
PrivateKey = ${client.privateKey} PrivateKey = ${client.privateKey}
Address = ${client.address}/24 Address = ${client.address}/24
${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''} ${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''}
if (typeof ${WG_MTU} !== 'undefined' || ${WG_MTU} !== null) { ${WG_MTU ? `MTU = ${WG_MTU}` : ''}
MTU = ${WG_MTU}
}
[Peer] [Peer]
PublicKey = ${config.server.publicKey} PublicKey = ${config.server.publicKey}

Loading…
Cancel
Save