feat: support graceful shutdown
This commit is contained in:
@@ -318,4 +318,8 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
|
||||
await this.saveConfig();
|
||||
}
|
||||
|
||||
// Shutdown wireguard
|
||||
async Shutdown() {
|
||||
await Util.exec('wg-quick down wg0').catch(() => { });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user