Browse Source

Feat: startup info (#1784)

add startup info
pull/1789/head
Bernd Storath 2 days ago
committed by GitHub
parent
commit
9df049d3f4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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