|
|
|
@ -1,12 +1,14 @@ |
|
|
|
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(`====================================================`); |
|
|
|
console.log(` |
|
|
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
|
|
|
┃ wg-easy - https://github.com/wg-easy/wg-easy ┃
|
|
|
|
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ |
|
|
|
┃ wg-easy: ${RELEASE.padEnd(38)} ┃ |
|
|
|
┃ Node: ${process.version.padEnd(38)} ┃ |
|
|
|
┃ Platform: ${process.platform.padEnd(38)} ┃ |
|
|
|
┃ Arch: ${process.arch.padEnd(38)} ┃ |
|
|
|
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
|
|
|
`);
|
|
|
|
nitroApp.hooks.hook('close', async () => { |
|
|
|
console.log('Shutting down'); |
|
|
|
await WireGuard.Shutdown(); |
|
|
|
|