Browse Source

Fix: WG_PORT doesn't apply to config

pull/87/head
Anton Palgunov 5 years ago
parent
commit
658654aff9
  1. 2
      src/lib/WireGuard.js

2
src/lib/WireGuard.js

@ -82,7 +82,7 @@ module.exports = class WireGuard {
[Interface]
PrivateKey = ${config.server.privateKey}
Address = ${config.server.address}/24
ListenPort = 51820`;
ListenPort = ${WG_PORT}`;
for (const [clientId, client] of Object.entries(config.clients)) {
if (!client.enabled) continue;

Loading…
Cancel
Save