Browse Source

add startup info

pull/1784/head
Bernd Storath 3 days ago
parent
commit
c7fb8bfd82
  1. 8
      src/server/plugins/manager.ts

8
src/server/plugins/manager.ts

@ -1,4 +1,12 @@
export default defineNitroPlugin((nitroApp) => {
console.log(`====================================================`);
console.log(` wg-easy - https://github.com/wg-easy/wg-easy `);
console.log(`====================================================`);
console.log(`| wg-easy: ${RELEASE.padEnd(38)} |`);
console.log(`| Node: ${process.version.padEnd(38)} |`);
console.log(`| Platform: ${process.platform.padEnd(38)} |`);
console.log(`| Arch: ${process.arch.padEnd(38)} |`);
console.log(`====================================================`);
nitroApp.hooks.hook('close', async () => {
console.log('Shutting down');
await WireGuard.Shutdown();

Loading…
Cancel
Save