Browse Source

fix wg0.conf formatting

pull/1356/head
Bernd Storath 10 months ago
parent
commit
359a56f1e1
  1. 2
      src/server/utils/WireGuard.ts

2
src/server/utils/WireGuard.ts

@ -32,7 +32,7 @@ class WireGuard {
} }
DEBUG('Config saving...'); DEBUG('Config saving...');
await fs.writeFile(path.join(WG_PATH, 'wg0.conf'), result.join('\n'), { await fs.writeFile(path.join(WG_PATH, 'wg0.conf'), result.join('\n\n'), {
mode: 0o600, mode: 0o600,
}); });
DEBUG('Config saved.'); DEBUG('Config saved.');

Loading…
Cancel
Save