Feat: add ability to restart interface (#1740)
add ability to restart interface
This commit is contained in:
@@ -193,6 +193,11 @@ class WireGuard {
|
||||
await wg.down(wgInterface.name).catch(() => {});
|
||||
}
|
||||
|
||||
async Restart() {
|
||||
const wgInterface = await Database.interfaces.get();
|
||||
await wg.restart(wgInterface.name);
|
||||
}
|
||||
|
||||
async cronJob() {
|
||||
const clients = await Database.clients.getAll();
|
||||
// Expires Feature
|
||||
|
||||
Reference in New Issue
Block a user