[client] Add output similar to wg show to the debug package (#3922)

This commit is contained in:
Zoltan Papp
2025-06-05 11:51:39 +02:00
committed by GitHub
parent 609654eee7
commit 9424b88db2
12 changed files with 338 additions and 1 deletions

View File

@@ -216,6 +216,10 @@ func (w *WGIface) GetStats() (map[string]configurer.WGStats, error) {
return w.configurer.GetStats()
}
func (w *WGIface) FullStats() (*configurer.Stats, error) {
return w.configurer.FullStats()
}
func (w *WGIface) waitUntilRemoved() error {
maxWaitTime := 5 * time.Second
timeout := time.NewTimer(maxWaitTime)