Extend Darwin network monitoring with wakeup detection

This commit is contained in:
Zoltan Papp
2025-10-14 12:14:08 +02:00
parent 000e99e7f3
commit b1ebac795d
3 changed files with 210 additions and 1 deletions
@@ -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 to watching for network changes")
// debounce changes
timer := time.NewTimer(0)
timer.Stop()