mirror of https://github.com/wg-easy/wg-easy
1 changed files with 2 additions and 2 deletions
@ -1,6 +1,6 @@ |
|||
export default defineNitroPlugin((nitroApp) => { |
|||
nitroApp.hooks.hook('close', () => { |
|||
nitroApp.hooks.hook('close', async () => { |
|||
console.log('Shutting down'); |
|||
WireGuard.Shutdown(); |
|||
await WireGuard.Shutdown(); |
|||
}); |
|||
}); |
|||
|
Loading…
Reference in new issue