Browse Source

start wireguard on start

pull/1244/head
Bernd Storath 10 months ago
parent
commit
1458e5211b
  1. 8
      src/server/utils/WireGuard.ts

8
src/server/utils/WireGuard.ts

@ -393,4 +393,10 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;
}
}
export default new WireGuard();
const inst = new WireGuard();
inst.getConfig().catch((err) => {
console.error(err);
process.exit(1);
});
export default inst;

Loading…
Cancel
Save