Add peer tracking toggle to WireGuard dashboard

Introduces a 'peer_tracking' configuration option for WireGuard in DashboardConfig and updates the dashboard background thread to respect this setting. The Vue component now includes a UI toggle for peer tracking, updates the server configuration via API, and conditionally loads tracking data based on the toggle state.
This commit is contained in:
Donald Zou
2025-12-19 09:22:45 +08:00
parent 9ae5fea7b4
commit 87ff8afefe
3 changed files with 44 additions and 10 deletions

View File

@@ -85,7 +85,8 @@ class DashboardConfig:
"enable": "true",
},
"WireGuardConfiguration": {
"autostart": ""
"autostart": "",
"peer_tracking": "false"
}
}