[client] Extend Darwin network monitoring with wakeup detection

This commit is contained in:
Zoltan Papp
2025-10-31 19:19:14 +01:00
committed by GitHub
parent 86eff0d750
commit 8c108ccad3
4 changed files with 246 additions and 73 deletions

View File

@@ -88,6 +88,7 @@ func (nw *NetworkMonitor) Listen(ctx context.Context) (err error) {
event := make(chan struct{}, 1)
go nw.checkChanges(ctx, event, nexthop4, nexthop6)
log.Infof("start watching for network changes")
// debounce changes
timer := time.NewTimer(0)
timer.Stop()